wood burning stoves 2.0*
The moose likes JSP and the fly likes Question about jsp XML syntax and CDATA ! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Question about jsp XML syntax and CDATA !" Watch "Question about jsp XML syntax and CDATA !" New topic

Question about jsp XML syntax and CDATA !

Eric Suen

Joined: Mar 17, 2004
Posts: 3
I have a file like this:
<?xml version="1.0"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:jsp="http://java.sun.com/JSP/Page">
and I try tomcat 5.0.19 & resin 3.0.6, and the output is:
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"><fo:block>
The question is, is this the bugs of jsp engine, or the spec need to do
this type decoding? How can I get "<![CDATA[...]]>" as output?
and how to prevent engine decode "&lt;" to "<", use "&amp;"?
seems the engine make the simple things complicated? Should this
decode only happend when context in <jsp:text> element?
I agree. Here's the link: http://aspose.com/file-tools
subject: Question about jsp XML syntax and CDATA !
Similar Threads
FOP, Error in FO header
use XSLT to copy attribute/element and generate element
PDF file contents of word document using XSLT.
How to get fo tags reconized?
To display XSL-FO content on a browser