This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Including URL-encoded query string in XHTML document
- To: "'XSL-List at lists dot mulberrytech dot com'" <XSL-List at lists dot mulberrytech dot com>
- Subject: [xsl] Including URL-encoded query string in XHTML document
- From: "Kiyko, Yelena" <Yelena dot Kiyko at gs dot com>
- Date: Wed, 10 Jan 2001 20:11:18 -0500
- Reply-To: xsl-list at lists dot mulberrytech dot com
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 "&" in the original data, but then the output
XSLT document also contains & 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