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

specifying attribute delimiters for xml output in xsl

Subject: specifying attribute delimiters for xml output in xsl
From: Gunjan_Gupta@xxxxxxxx
Date: Mon, 9 Jul 2001 10:55:45 -0500
delimiters in xml
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

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.