04/07/09 01:38
XULチュートリアルのバインディングのサンプルがうまく動きません(バインディングが反映されない)。
URLリンク(xul-app.hp.infoseek.co.jp)
このサンプルに何か問題点ありますでしょうか?
XUL (example.xul):
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://example/skin/example.css" type="text/css"?>
<window xmlns="URLリンク(www.mozilla.org)">
<box class="okcancelbuttons"/>
</window>
CSS (example.css):
box.okcancelbuttons {
-moz-binding: url('chrome://example/skin/example.xbl#okcancel');
}
XBL (example.xbl):
<?xml version="1.0"?>
<bindings xmlns="URLリンク(www.mozilla.org)"
xmlns:xul="URLリンク(www.mozilla.org)">
<binding id="okcancel">
<content>
<xul:button label="OK"/>
<xul:button label="Cancel"/>
</content>
</binding>
</bindings>