Working with Lift XHTML/HTML in Netbeans
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?
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>:
<div class="lift:surround?with=default;at=content"> ... as before ... </div>