XBL problem !

View: New views
1 Messages — Rating Filter:   Alert me  

XBL problem !

by zuanoc :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have an example about using xbl : binding content. I have 3 file for this example :
-----------------------------------------------------------------------------------
binding.xml
-----------------------------------------------------------------------------------
Code:

  <?xml version="1.0" encoding="utf-8" ?>
  <bindings xmlns="http://www.mozilla.org/xbl"
            xmlns:xbl="http://www.mozilla.org/xbl"
            xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
            >
    <binding id="bindfortest">
      <children/>
      <textbox/>
      <checkbox label="checkbox 1"/>
    </binding>
  </bindings>

-----------------------------------------------------------------------------------
bindCss.css
-----------------------------------------------------------------------------------
Code:

.menuclass
{
   -moz-binding: url("slideBinding.xml#bindfortest");
}


-----------------------------------------------------------------------------------
bindingXul.xul
-----------------------------------------------------------------------------------
Code:

<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet href="bindCSS.css" type="text/css"?>
<window id="wdw1" title="Slide Show"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

  <menu class="menuclass" label="File">
    <menupopup>
      <menuitem label="content 1"/>
      <menuitem label="content 2"/>
    </menupopup>
  </menu>
</window>

-----------------------------------------------------------------------------------

when i open the file bindingXul.xul by Firefox, nothing is appearred ! so anyone help me to fix the error ? Thanks !

[/code]