The syntax for action elements is based on XML; the only transformations needed are due to
quoting conventions and the syntax of request time attribute expressions.
Transforming a JSP Page into an XML
The standard XML document for a JSP page is defined by transformation of the JSP page.
element as the root. Enable a jsp namespace prefix for the standard
tags within this root.
Convert all the <% elements into valid XML elements as described in Section 7.4.1 and
Convert the quotation mechanisms appropriately.
directive into namespace attributes of the
Create CDATA elements for all segments of the JSP page that do not correspond to JSP
A quick summary of the transformation is shown in
TABLE 7 1
TABLE 7 1
XML standard tags for directives and scripting elements
JSP page element
<%@ page ... %>
<%@ taglib ... %>
jsp:root element is annotated with namespace information.
<%@ include ... %>
<%! ... %>
<% ... %>
<%= .... %>
JSP Pages as XML Documents