Subject: RE: [xsl] identity transform - include CDATA's, etc From: "Andrew Welch" <AWelch@xxxxxxxxxxxxxxx> Date: Wed, 9 Jul 2003 09:43:01 +0100 |
> if the identity transform outputs: > <a>b<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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] identity transform - incl, David Carlisle | Thread | Re: [xsl] identity transform - incl, Abie Hamaoui |
[xsl] Re: document() for opening mu, Vitaly Ostanin | Date | Re: [xsl] Rename attributes and nod, Jeni Tennison |
Month |