Boyd,

> I cannot really use the XML representation, because the <jsp:cdata> tag
> doesn't work with current Tomcat-4.0-devel. I get classCastExceptions if
> I try to use this tag.

But you could still use <![CDATA[  ...      ]]> for your CDATA.
<jsp:cdata> should be in tomcat-4.0 befroe the end of the week.

> ps: I can see that ultimately, we'll have a clean xml rep of jsp, using
> the xml namespaces etc. But at the moment it's a mess...

With the community contributing constructive feedback, tests, code, patches, comments, 
etc, 
it will definitely get there faster...

    -- Pierre

Boyd Waters wrote:
> 
> Howdy...
> 
> Tomcat 4.0 attempts to conform to the JSP 1.2 spec.
> 
> JSP 1.2 specifies an XML representation for JSP pages. One is supposedly
> able to use the original syntax, or the new XML rep, but one CANNOT
> inter-mingle XML and the original syntax in the 1.2 spec.
> 
> People, this is *awful*. All of my stuff breaks.
> 
> For example:
> 
> <p>This version of the table was created by treating the nested content
> as
> the XML document (simulating the case where the JSP page itself would be
> rendering XML output), but using an external XSL stylesheet.</p>
> 
> <xsl:apply xsl="/xml/employeeList.xsl">
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <employees>
>   <employee id="123">
>     <first-name>John</first-name>
>     <last-name>Doe</last-name>
>     <telephone>800-555-1212</telephone>
>   </employee>
>   <employee id="456">
>     <first-name>Jane</first-name>
>     <last-name>Smith</last-name>
>     <telephone>888-555-1212</telephone>
>   </employee>
>   <employee id="789">
>     <first-name>George</first-name>
>     <last-name>Taylor</last-name>
>     <telephone>555-555-1212</telephone>
>   </employee>
> </employees>
> </xsl:apply>
> <hr>
> 
> -----
> 
> This code cannot be incorporated into an "original-style" JSP page
> because its got XML in it. You have to go to the fully blown-out XML
> representation.
> 
> I cannot really use the XML representation, because the <jsp:cdata> tag
> doesn't work with current Tomcat-4.0-devel. I get classCastExceptions if
> I try to use this tag.
> 
> It's actually worse than this, because my site uses XHTML -- the HTML
> pages are XML documents. I need Tomcat to emit XML, *INCLUDING* the
> DOCTYPE declaration.
> 
> So by way of winding down this rant, has anyone been able to use the XSL
> taglib with Tomcat 4.0? Or any XML at all?
> 
> -- boyd
> 
> ps: I can see that ultimately, we'll have a clean xml rep of jsp, using
> the xml namespaces etc. But at the moment it's a mess...
> 
> ---------
> Boyd Waters                                          [EMAIL PROTECTED]
> National Radio Astronomy Observatory              http://www.nrao.edu
> PO Box 0 Socorro, NM 87801                               505.835.7346
> 
>                                         http://www.zocalo.net/~waters
>                                                     [EMAIL PROTECTED]
> ---------
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to