This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: forming a link w/ arguments?

[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&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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]