inaccurate XHTML DTD

We are using jspx a lot. Also we use custom tags which generate some HTML. So when we edit JSPX we always have errors highlighted and what is a real problem we are loosing popup suggestions for tags, if for example the BODY tag was replaced by some custom tag.
I was trying to reassign resource http://www.w3.org/1999/xhtml to some other dtd and edit it to make it less strict. But I'm not good at this, I was trying to set <!ELEMENT html ANY> but it's not help. JSPX still requires only BODY and HEAD in HTML tag. I don't know maybe I'm doing something wrong with dtd or IDEA has some problems.
Is anybody tried to edit XHTML DTD to make JSPX work with custom tags? If so could you please share your fixed DTD?

Thanks,
Eugene

Please sign in to leave a comment.