Re: [xsl] xsl href usage

Subject: Re: [xsl] xsl href usage
From: Oliver Becker <obecker@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 8 Aug 2001 09:18:15 +0200 (MEST)
> <td><xsl:if test="leaf">
>     <a href="?leaf[1]/@xlink:href?">
>          <xsl:value-of select="leaf[1]/title"/>
>        </a> 
>  </xsl:if>
> </td>
[...]
> By clicking on it doesn't do anything and the
> source output html looks something like this:
> <a href="?leaf[1]/@xlink:href?"> 

How do the question marks get into your code?

You should use {} instead:
<a href="{leaf[1]/@xlink:href}">

Cheers,
Oliver


/-------------------------------------------------------------------\
|  ob|do        Dipl.Inf. Oliver Becker                             |
|  --+--        E-Mail: obecker@xxxxxxxxxxxxxxxxxxxxxxx             |
|  op|qo        WWW:    http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/


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


Current Thread