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&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&ID=</xsl:text><xsl:value-of
select="." />
</xsl:attribute>
Approve
</xsl:element>
(both no and yes)....
but the & would stay and & 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&ID=7
What can I do?
Thx for helping!
:-) stw
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--