This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: xsl:value-of inside an html tag
- From: "Matt MacDougall" <matt at goodfoodpro dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 2 Oct 2002 16:46:45 -0500
- Subject: RE: [xsl] xsl:value-of inside an html tag
- Reply-to: xsl-list at lists dot mulberrytech dot com
I guess I was using the wrong terms to search the archive. Many thanks for
the help everyone!
-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Passin, Tom
Sent: Wednesday, October 02, 2002 3:43 PM
To: xsl-list@lists.mulberrytech.com
Subject: RE: [xsl] xsl:value-of inside an html tag
[Matt MacDougall]
> 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?
>
This is a FAQ and just came up again earlier. Use attribute value
templates -
<a href='{/page/results/prevnext/@prevresult}'>.....</a>
Cheers,
Tom P
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list