RE: [xsl] XML from JSP

Subject: RE: [xsl] XML from JSP
From: sara.mitchell@xxxxxxxxx
Date: Fri, 15 Nov 2002 16:36:10 -0500
The JSP directive: 


> -----Original Message-----
> <%
> String block = "work";
> %>

is not well-formed XML. The XML parser expects 
that anything beginning with < represents
XML markup. (Note: parsers don't compile 
XML, they parse it.)

To make it well-formed, you need to have the 
JSP directive inside a CDATA marked section
like this: 

<![CDATA[<%
 String block = "work";
 %>]]>

**or use the XML compliant JSP syntax**. 
In most cases, JSP has XML compliant syntax 
and with that both the XML parser will be 
happy and your JSP page will compile. 

Sara Mitchell

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread