This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
<A> with parameters
- To: XSL-List at lists dot mulberrytech dot com
- Subject: [xsl] <A> with parameters
- From: Peter dot FLYNN at syntegra dot bt dot co dot uk
- Date: Tue, 27 Mar 2001 11:05:58 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi,
I recently wrote some XSL which works with Xalan and IE and Netscape:
<A>
<xsl:attribute
name="HREF">/myServlet?query=processUser&contact_id=<xsl:apply-templates
select="@ID"/>
</xsl:attribute>
Process User
</A>
This generally works fine under those browser environments. These browsers
however generally keep the & and process this in the final query. I'm
now testing with a browser which doesn't support this feature and I'm trying
to generate the & without using & and I'm getting
TransformationExceptions.
If I remove the amp; and just leave the &, Xalan assumes that contact_id is
an entity.
So I tried to wrap the & with <xsl:text> but this did not work either. (The
code looked as such)
<A>
<xsl:attribute
name="HREF">/myServlet?query=processUser<xsl:text>&</xsl:text>contact_id=<xs
l:apply-templates select="@ID"/>
</xsl:attribute>
Process User
</A>
Is there another way of doing anchors with parameters, so the resulting URL
contains just & and not & ??
The browser I'm using will not handle & in the URL string.
Regards,
Peter
******************************************************************************
Check us out at http://www.syntegra.com
***********************************************************************
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list