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

Re: CDATA output

Subject: Re: CDATA output
From: Nathan Shaw <n8_shaw@xxxxxxxxx>
Date: Tue, 22 Apr 2003 19:11:44 -0700 (PDT)
cdata in property in xsl
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">&lt;![CDATA[
<!-- main content -->
<xsl:apply-templates />
]]&gt;</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


Current Thread
  • Re: CDATA output
    • Nathan Shaw - Tue, 22 Apr 2003 22:06:56 -0400 (EDT) <=
      • <Possible follow-ups>
      • Nathan Shaw - Wed, 23 Apr 2003 10:11:40 -0400 (EDT)

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.