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

Re: CDATA question

Subject: Re: CDATA question
From: Mike Brown <mike@xxxxxxxx>
Date: Tue, 18 Jun 2002 16:13:59 -0600 (MDT)
xquery modify cdata
Amy Cheung wrote:
> Thanks for the reply. But I forget to mention that in
> my case, people are allowed to modify the xml file to
> add new tags, which may contain CDATA section. So it's
> unpredictable beforehand what tags to include in 
> <xsl:output cdata-section-elements='xxx'/>

CDATA sections are not part of the XPath/XSLT data model, nor are they part of
what is reported by an XML parser to any application; they are merely a
convenience for document authors who don't want to escape "&" and "<" when
those characters are not being used to denote markup.

Because of this, during XSLT processing you have no way of knowing that the
original input had CDATA sections, entity references, character references,
what character-to-bits encoding was used, what the DTD looked like, etc.
You're only working with the logical contents of the XML, not the
physical/lexical contents.

   - Mike
____________________________________________________________________________
  mike j. brown                   |  xml/xslt: http://skew.org/xml/
  denver/boulder, colorado, usa   |  resume: http://skew.org/~mike/resume/

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


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.