[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Unescaped CDATA?

Subject: Re: Unescaped CDATA?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Sat, 17 Dec 2005 23:29:53 GMT
cdata means
> This works - but the tags within the CDATA section are escaped to
> literal <p>, <i> etc. So the browser displays 

Note that it isn't the XSLT processor that does that, it's the XML
parser that does it, as that's what CDATA means. There are no tags in a
cdata section as CDATA means character data, and specifically it means
that < stands for < (the same as &lt;) and does not represent the start
of a tag. so XSLT sees the same input whether you go <![CDATA[<br>]]> or &lt;br&gt;
you can not distinguish these cases after the XML parse. (as Ken says
you may be able to use d-o-e to get write either of these input forms as
<br> if your processor supports d-o-e. (it's usually supported if
writing the result to a file or character stream and often not
supported if the result tree is passed on from xslt to some other
process as an in-memory tree such as a DOM node.

David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.