There are a number of reasons why it would be impractical to define JSP pages as XML documents when the JSP page is to be authored manually:
On the other hand, the JSP specification is not gratuitously inconsistent with XML: All features have been made XML-compliant as much as possible. The hand-authoring friendliness of JSP pages is very important for the initial adoption of the JSP technology; this is also likely to remain important in later time frames , but tool manipulation of JSP pages will take a stronger role then. In that context, there is an ever growing collection of tools and APIs that support manipulation of XML documents. The JSP 1.1 specification addresses both requirements by providing a friendly syntax and also defining a standard XML document for a JSP page. A JSP 1.1-compliant tool need not do anything special with this document. |