Subject: RE: Making dynamic href's in XSL
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Thu, 1 Jun 2000 09:28:35 +0100
|
> 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
|