Re: [xsl] Creating Hyperlinks using xlink

Subject: Re: [xsl] Creating Hyperlinks using xlink
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Wed, 9 Jul 2003 14:51:44 +0100
Hi Rudi,

> For example this line from my 'address' xsl:template,
> <a href="{xlink:simple/@href}"><xsl:value-of select="."/></a>,
> in the rendered html document the {xlink:simple/@href} is blank but the
> <xsl:value-of select="."/> is fine.

The value you want for the href attribute is the value of the
xlink:href attribute on the current <address> element. Currently
you're selecting the href attribute of an <xlink:simple> element,
which doesn't exist. Try:

  <a href="{@xlink:href}"><xsl:value-of select="." /></a>

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread