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: Making dynamic href's in XSL


> 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" />
 </a>

Mike Kay


 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]