[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: CDATA output
Yeah, I wish it was as easy as adding the element name to the cdata-section-elements attr, but the element name is not unique. There are about 10 <property> elements and there is only one that needs to be treated as CDATA (property name="body"). I tried putting this: cdata-section-elements="property name='body'" but it did not work, rightfully so. So, I cannot use cdata-section-elements. Right now, I am simply doing this: <property name="Body"><![CDATA[ <!-- main content --> <xsl:apply-templates /> ]]></property> but that seems 'unclean' to me... --Nathan Date: Tue, 22 Apr 2003 19:57:43 +0100 From: "Michael Kay" <mhk@xxxxxxxxx> Subject: RE: outputting CDATA section > So, how the heck do I put in those CDATA tags?! I > cannot use the cdata-sections attr in xsl:output > because the element name is not unique. There are > about 10 other <property> elements with differing name > attr values. cdata-section-elements takes a whitespace-separated list of element names, e.g. cdata-section-elements="a b c d e" Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx __________________________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|