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
- Subject: Re: Making dynamic href's in XSL
- From: ed billings <edbi at crt dot com>
- Date: Wed, 31 May 2000 17:33:40 -0500
- Organization: bank of america
- References: <393581C1.8412393A@coxtarget.com>
- Reply-To: xsl-list at mulberrytech dot com
better to use xsl:attribute with complex hrefs
<a>
<xsl:attribute name="href">show_tasks.jsp?pcode=<xsl:value-of
select="site_code"/>project_number=<xsl:value-of select="number" />
</xsl:attribute>
<xsl:value-of select="number" />
</a>
ed
Brian Burridge wrote:
> 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>
>
> but I get the error "The value of attribute "href" must not contain the
> '<' character. ". I understand what the error means, but I'm not sure
> how to get around it. Is there a better way of building a dynamic href?
>
> --
>
> Brian N. Burridge
> Internet Architect
> Ext 3515
> The Internet Group - ITSS
> Cox Target Media
>
> "Until a person can say deeply and honestly, "I am what I am today
> because of the choices I made yesterday," that person cannot say, "I
> choose otherwise."
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list