Subject: [xsl] xsl:value-of inside an html tag From: "Matt MacDougall" <matt@xxxxxxxxxxxxxxx> Date: Wed, 2 Oct 2002 15:14:57 -0500 |
Hi, 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. The only thing I can get to compile is the following but this actually prints the href to the screen rather than processing it. <xsl:variable name="beginhref"><a href="</xsl:variable> <xsl:variable name="endhref">"></xsl:variable> <xsl:variable name="closehref"></a></xsl:variable> <xsl:value-of select="$beginhref"/><xsl:value-of select="/page/results/prevnext/@prevresult"/><xsl:value-of select="$endhref"/>Previous<xsl:value-of select="$closehref"/> Is there another way to do this that actually resolves the href rather than printing it out? Thanks, -Matt MacDougall XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Prob using xsl namespace , Michael Kay | Thread | Re: [xsl] xsl:value-of inside an ht, Josh Campbell |
Re: [xsl] finding next element afte, David Carlisle | Date | Re: [xsl] xsl:value-of inside an ht, Josh Campbell |
Month |