RE: Making dynamic href's in XSL

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"
> />&#0026;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}&amp;project_number={number}">
    <xsl:value-of select="number" />

Mike Kay

 XSL-List info and archive:

Current Thread