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

RE: identity transform - include CDATA's, etc

Subject: RE: identity transform - include CDATA's, etc
From: "Andrew Welch" <AWelch@xxxxxxxxxxxxxxx>
Date: Wed, 9 Jul 2003 09:43:01 +0100
javascript include xsl
> if the identity transform outputs:
> &lt;a>b&lt;a>
> this is fine, but if it outputs:
> <a>b</a>
> this is not, as it could obviously run into problems when the '<' signs
> aren't xml but something else (eg javascript code).  in this case, the
> source document would be valid xml b/c of the CDATA beginning and end
> markers, but the output would not be.

Sorry if I miss the point because I havent followed this thread, but do you just want to set 

cdata-section-elements="script" on xsl:output

then wrap all of the javascript in your stylesheet in

<script>
 ...
</script>

and the serialiser will output all of you javascript in cdata sections

cheers
andrew
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.495 / Virus Database: 294 - Release Date: 30/06/2003
 

 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.