JSP XML syntax
Why is the JSP XML syntax so badly documented?
In JSP XML syntax, Koert asks...
Isn't it odd that this is so badly documented?
Fair comment. It's documented in the JSP specification, but you won't find much else about it on the web or in books. From my perspective, the reason for this is that nobody actually uses it. Okay, that's a bit of a generalization, but it's mostly true. The XML view of a JSP page is designed to be used programmatically by tools and not to be read/written by humans.
The great thing about the XML view is that it's well-formed XML, which you can parse and transform as necessary. Of course, the major problem is that it's verbose and pretty unreadable. Interestingly, the XML view of a JSP 2.x page can be more readable than its JSP 1.x counterpart. The reason for this is that you have the option to use the integrated expression language support instead of using a mixture of custom tags and runtime expressions translated into their XML equivalents. Still, *I* wouldn't want to actually develop JSP pages in this format and I don't actually remember anybody else using it either! ;-)
Re: JSP XML syntax
Re: JSP XML syntax
http://issues.apache.org/bugzilla/show_bug.cgi?id=28207
I just want use to make my jspx more readable, and the jsp 2.0 specification force me to write whole DTD for the document...
why jsp should do XML validation? and unable to turn it off? I think most people validate XML in development stage, why do it in runtime? isn't that hurt performance?
Simon is a hands-on software architect and has a BSc (Hons) in Computer Science from the University of Reading. Over the past 12 years, he’s been involved in projects ranging from rich desktop clients and web applications through to highly scalable distributed systems and service-oriented architectures; predominantly within the finance industry. He's also undertaken consulting and training roles with a broader focus on people, process and technology.

