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

&parameter= in XML to HTML transformation

Subject: &parameter= in XML to HTML transformation
From: stephan@xxxxxxxxxx
Date: Wed, 31 Jan 2007 21:24:51 +0800
 &parameter= in XML to HTML transformation
Hi there,

we try to get URLs in an XSLT transformation that contain query 
parameters.
I tried

<xsl:output method="html" />
<xsl:element name="a">
        <xsl:attribute name="href">
 http://myserver/action.do?action=Approve&amp;ID=<xsl:value-of select="." 
/>
        </xsl:attribute>
        Approve
</xsl:element>

and

<xsl:element name="a">
        <xsl:attribute name="href">
                <xsl:text disable-output-escaping="yes|no"
>http://myserver/action.do?action=Approve&amp;ID=</xsl:text><xsl:value-of 
select="." />
        </xsl:attribute>
        Approve
</xsl:element>

(both no and yes)....

but the &amp would stay and &amp and not render to &

While & is illegal in XML and HTML it is perfectly legal (and required) in 
an URL. I searched online and found:

http://www.biglist.com/lists/xsl-list/archives/200410/msg00565.html
http://sources.redhat.com/ml/xsl-list/2001-01/msg00510.html
http://www.biglist.com/lists/xsl-list/archives/200101/msg00741.html
http://www.xml.com/pub/a/2001/03/14/trxml10.html

but it didn't address my problem. Unfortunately the server thinks these 
two URLs are different:
http://myserver/action.do?action=Approve&ID=7
http://myserver/action.do?action=Approve&amp;ID=7

What can I do?

Thx for helping!
:-) stw

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-2007 All Rights Reserved.