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

RE: CDATA - Can I have XML ?

Subject: RE: CDATA - Can I have XML ?
From: "Jeffrey Winter" <JeffreyWinter@xxxxxxx>
Date: Fri, 7 Mar 2003 09:55:43 -0500
jeffrey winter

What about the situation where an XHTML fragment needs to be 
put into an otherwise "vanilla" XML document, where character
entities (&ldquo; etc.) are embedded in the XHTML document
fragment?

Is it poor design to use these character entities?

Thanks.


> -----Original Message-----
> From: Michael Kay [mailto:mhk@xxxxxxxxx] 
> Sent: Friday, March 07, 2003 9:25 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  CDATA - Can I have XML ?
> 
> 
> >   Is it possible possible to parse the XML data which is 
> > under CDATA tag in a XSL?
> 
> Yes, you can extract it as a string and pass it to an XML parser like
> any other string. But you can't do this within standard XSLT 
> 1.0 (Saxon
> has an extension function saxon:parse to do this).
> 
> The usual advice is that when you nest one XML document 
> inside another,
> you should nest it directly, without using CDATA. XML is specifically
> designed to allow such nesting. CDATA is saying "the angle brackets in
> here may look like markup, but they aren't". So if they are 
> markup, why
> put them in CDATA?
> 
> But of course, dealing with badly-designed XML is what we all 
> have to do
> every day.
> 
> Michael Kay
> Software AG
> home: Michael.H.Kay@xxxxxxxxxxxx
> work: Michael.Kay@xxxxxxxxxxxxxx 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 

 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.