XUL / XML 解析错误:未定义实体
有谁知道为什么会出现这个错误?
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://onsip/content/options/options.css"?>
<!DOCTYPE dialog SYSTEM "chrome://onsip/locale/options.dtd">
<dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
id="onsip-options-dialog"
title="OnSIP Options"
buttons="accept, cancel"
ondialogaccept="onsip.saveOptions()">
<script src="chrome://onsip/content/onsip.js"/>
<script src="chrome://onsip/content/preferences.js"/>
<script src="chrome://onsip/content/options/options.js"/>
<hbox flex="1">
<listbox id="onsip-page-list" onselect="onsip.changePage(this)">
<listitem label="&onsip.options.general.label;" selected="true" value="chrome://onsip/content/options/pages/general.xul" />
</listbox>
<vbox flex="1">
<iframe flex="1" id="onsip-options-iframe"
src="chrome://onsip/content/options/pages/general.xul"/>
</vbox>
</hbox>
</dialog>
代码在上面,如果有人对 XUL 有更广泛的了解,请留言,将非常感激。 S。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web
技术交流群。
有谁知道为什么会出现这个错误?
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://onsip/content/options/options.css"?>
<!DOCTYPE dialog SYSTEM "chrome://onsip/locale/options.dtd">
<dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
id="onsip-options-dialog"
title="OnSIP Options"
buttons="accept, cancel"
ondialogaccept="onsip.saveOptions()">
<script src="chrome://onsip/content/onsip.js"/>
<script src="chrome://onsip/content/preferences.js"/>
<script src="chrome://onsip/content/options/options.js"/>
<hbox flex="1">
<listbox id="onsip-page-list" onselect="onsip.changePage(this)">
<listitem label="&onsip.options.general.label;" selected="true" value="chrome://onsip/content/options/pages/general.xul" />
</listbox>
<vbox flex="1">
<iframe flex="1" id="onsip-options-iframe"
src="chrome://onsip/content/options/pages/general.xul"/>
</vbox>
</hbox>
</dialog>
代码在上面,如果有人对 XUL 有更广泛的了解,请留言,将非常感激。 S。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
检查
chrome://onsip/locale/options.dtd
中是否存在&onsip.options.general.label
。如果没有定义的话。Check if
&onsip.options.general.label
is present inchrome://onsip/locale/options.dtd
. If not define it.问题是“ru-RU”本地化不存在,因此为了解决这个问题,我刚刚为“RU”做了本地化,但仍然不知道如何设置默认本地化。
The issue was that the "ru-RU" localization was not there, So to solve this issue I have just made a localization for "RU", though still didn't get how to set a default localization .