[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: xsl:value-of inside an html tag

Subject: RE: xsl:value-of inside an html tag
From: "Conal Tuohy" <conalt@xxxxxxxxxxxxxxx>
Date: Thu, 3 Oct 2002 08:41:32 +1200
xsl inside html
Attribute Value Templates are what you want:

<a href="{/page/results/prevnext/@prevresult"}>Previous</a>

Note the curly brackets { } which indicate the Attribute Value Template.
AVTs are a convenience method for you to insert the result of an expression
into an attribute value. Otherwise you would have to use the equivalent
long-hand approach:

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

Cheers!

Con

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Matt
> MacDougall
> Sent: Thursday, 3 October 2002 08:15
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  xsl:value-of inside an html tag
>
>
> 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.


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.