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

Including URL-encoded query string in XHTML document

Subject: Including URL-encoded query string in XHTML document
From: "Kiyko, Yelena" <Yelena.Kiyko@xxxxxx>
Date: Wed, 10 Jan 2001 20:11:18 -0500
xhtml query string
I'm trying to process an XML data feed that contains URL-encoded query
strings, like the following:

	<item url="research.exe?ticker=GS&type=1" date="01/01/2000">goldman
sachs</item>	

and use the stylesheet below to construct an href tag for each item element:

	<xsl:template match="item">
		<a>
			<xsl:attribute name="href">
				<xsl:value-of select="@url">
			</xsl:attribute>
			<xsl:value-of select="." />
		</a>
	</xsl:template>

Any advice on what is the best way to pass a URL-encoded string through the
XSLT transformation?
I substituted "&" with "&amp;" in the original data, but then the output
XSLT document also contains &amp; and there seems to be no way to print "&"
as it is.
Using <xsl:output method="html" > or "disable-output-escape" directives did
not seem to help. 

thanks in advance,
-yelena


 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.