This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: forming a link w/ arguments?
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] forming a link w/ arguments?
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Tue, 13 Nov 2001 12:34:34 GMT
- References: <Pine.LNX.4.21.0111130604230.18839-100000@mlug.missouri.edu>
- Reply-to: xsl-list at lists dot mulberrytech dot com
[Get raw message]
> <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&search_id=6&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() < last()">&</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