[xsl] specifying attribute delimiters for xml output in xsl

Subject: [xsl] specifying attribute delimiters for xml output in xsl
From: Gunjan_Gupta@xxxxxxxx
Date: Mon, 9 Jul 2001 10:55:45 -0500
Hello

I have to transform some xml files which have attributes with double quotes
for e.g.,

<Song1  Title='?"This is the "@1"song"' Singer='"Gunjan"'/>

Now there's two problems let's say I use a copy-of on this element it
transforms as

<Song1  Title="?&quot;This is the &quot;@1&quot;song&quot;"
Singer="&quot;Gunjan&quot;"/>

there's two changes

1. '  --> "

2. " --> &quot;

In case to change it back to the original for I have to parse the whole
string again and apply the reverse transform.

So (phew!!!!) is there a way to specify in xsl:output or somewhere else to 

a. use single quotes as delimiters

b. specify to presrve the double quotes(cdata) in copy-of and the xpaths.

Gunjan

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread