Re: [xsl] forming a link w/ arguments?

Subject: Re: [xsl] forming a link w/ arguments?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 13 Nov 2001 12:34:34 GMT
> <A HREF="mysite.com/index.php?image_id=3&search_id=6&page=1">My link</A>

well you can't generate that of course as that is not well formed HTML
or XML but

<A HREF="mysite.com/index.php?image_id=3&amp;search_id=6&amp;page=1">My link</A>

is OK, You can generate that as


<A>
<xsl:attribute name="HREF">
<xsl:value-of select="BASE"/>
<xsl:text>?</xsl:text>
<xsl:for-each select="ARG">
<xsl:value-of select="@NAME"/>=<xsl:value-of seelct="@VALUE"/>
<xsl:if test="position() &lt; last()">&amp;</xsl:if>
</xsl:for-each>
</xsl:attribute>
<xsl:value-of select="TEXT"/>
</A>


David




_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread