PDA

View Full Version : links in XML


angiras
06-08-2003, 04:24 PM
<a href="<xsl:value-of select="link"/>"></a>

doesn't work

what is the right way ?

thanks

brothercake
06-08-2003, 06:27 PM
<a href="{link}"><xsl:value-of select="link" /></a>

is the quickest way, but I believe you can also do this:

<a>
<xsl:attribute name="href"><xsl:value-of select="link" /></xsl:attribute>
<xsl:value-of select="link" />
</a>

angiras
06-08-2003, 06:31 PM
thanks Brother Cake :-))