[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Problems with CDATA
On Thu, 2006-03-09 at 16:00, Ciaran Bruen wrote: > When I apply the XSL in my XML editor the output is fine, but when I > write the returned xml to a log file from the jsp page it's fouled up. > The first problem was that it was not keeping any of the CDATA > sections around any elements - it was simply removing them and just > copying the text inside the sections. I then added > cdata-section-elements="UNIQUEJVID" and cdata-section-elements="TITLE" > (in a new line) to the xsl:output section of the xsl. This returned > the CDATA section around these element but incorrectly - as in below: Why do you need the CDATA? You'd be better off escaping your content values so you don't need them, and then un-escaping them on the other side (it looks like you're going to stuff this into a database at some stage). ast -- Join me in Dubrovnik, Croatia on May 8-10th when I will be speaking at InfoSeCon 2006. For more information, see www.infosecon.org. *************************************************************************************************** The information in this email is confidential and may be legally privileged. Access to this email by anyone other than the intended addressee is unauthorized. If you are not the intended recipient of this message, any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you are not the intended recipient, please reply to or forward a copy of this message to the sender and delete the message, any attachments, and any copies thereof from your system. ***************************************************************************************************
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|