This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Making dynamic href's in XSL
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Making dynamic href's in XSL
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Thu, 1 Jun 2000 09:28:35 +0100
- Reply-To: xsl-list at mulberrytech dot com
> I'm trying to build a dynamic href like this:
> <xsl:if test="num_active_tasks>0"><a
> href="show_tasks.jsp?pcode=<xsl:value-of select="site_code"
> />project_number=<xsl:value-of select="number"
> />"><xsl:value-of
> select="number" /></a>
>
Others have suggested using <xsl:attribute>. Another solution is to use
attribute value templates:
<xsl:if test="num_active_tasks>0">
<a href="show_tasks.jsp?pcode={site_code}&project_number={number}">
<xsl:value-of select="number" />
</a>
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list