Subject: Re: [xsl] CDATA question From: Mike Brown <mike@xxxxxxxx> Date: Tue, 18 Jun 2002 16:13:59 -0600 (MDT) |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] CDATA question, David Carlisle | Thread | RE: [xsl] Best practices - correcti, CROFT, MICHAEL |
RE: [xsl] testing child elements fo, Michael Kay | Date | Re: [xsl] Identity Transform and De, Mike Brown |
Month |