在 Netbeans 中使用 Lift XHTML/HTML
我正在使用 Netbeans 开发 Lift 应用程序,除了 lift xhtml 之外,我的所有功能都正常工作,它以 html 扩展名存储,在 netbeans 中创建许多警告和错误,例如:
<lift:surround with="default" at="content">
<div class="lift:HomePage">
<h2>Summary</h2>
</div>
</lift:surround>
给我错误
> Element "lift:surround" not allowed as child of element "body" in this context. (Suppressing further errors from this subtree.)
Content model for element 'body':
Flow content.
From line 1, column 1; to line 1, column 43
(Rule Category: Elements structure)
Element name "lift:surround" cannot be represented as XML 1.0.
From line 1, column 1; to line 1, column 43
(Rule Category: All Other)
----
有没有办法配置 Netbeans那么当这是有效的 Lift 编码时它不会出现这些错误?
I am developing a Lift application using Netbeans and I have everything working apart from the lift xhtml, which is stored with an html extension, creates a number of warning and errors in netbeans for example:
<lift:surround with="default" at="content">
<div class="lift:HomePage">
<h2>Summary</h2>
</div>
</lift:surround>
Gives me the errors
> Element "lift:surround" not allowed as child of element "body" in this context. (Suppressing further errors from this subtree.)
Content model for element 'body':
Flow content.
From line 1, column 1; to line 1, column 43
(Rule Category: Elements structure)
Element name "lift:surround" cannot be represented as XML 1.0.
From line 1, column 1; to line 1, column 43
(Rule Category: All Other)
----
Is there a way to configure Netbeans so it does not present these errors when this is valid Lift coding?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这并不能直接回答您的问题,但您可以以不同的方式重写所有:
lift:xxx
标记,以使解析器满意 HTML — 例如,使用This doesn't directly answer your question, but you can rewrite all the
lift:xxx
tags differently to make parsers that expect HTML happy — for instance, with<lift:surround>
: