Re: [xsl] xsl:value-of inside an html tag

Subject: Re: [xsl] xsl:value-of inside an html tag
From: Josh Campbell <josh@xxxxxxxxxx>
Date: Thu, 03 Oct 2002 08:36:23 +1200
If I've understood correctly it looks like you need to use an xsl:attribute to build the link. It would look a little something like this:

<xsl:attribute name="href"><xsl:value-of select="/page/results/prevnext/@prevresult"/></xsl:attribute>


Matt MacDougall wrote:

I'm trying to build a dynamic link by having the href attribute set to
<xsl:value-of select="/page/results/prevnext/@prevresult"/> ... so I would
have something like <a href="<xsl:value-of
select="/page/results/prevnext/@prevresult"/>">Previous</a> ... obviously
that's not going to work though.

Is there another way to do this that actually resolves the href rather than
printing it out?

XSL-List info and archive:

Current Thread