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

Re: problems with transforming xml with xsl! sample in

Subject: Re: problems with transforming xml with xsl! sample inside
From: Peter Davis <pdavis152@xxxxxxxxx>
Date: Thu, 14 Mar 2002 20:09:26 -0800
Re:  problems with transforming xml with xsl! sample in
Remember to use an attribute value template in the href attribute, or else it 
will just output the actual XPath expression instead of evaluating it.

<a href="{id(@id)}"><xsl:value-of select="id(@id)/@name"/></a>

and so on (notice the curly-braces).

On Thursday 14 March 2002 05:33, Joerg Heinicke wrote:
> <a href="id(@id)/@value"><xsl:value-of select="id(@id)/@name"/></a>
> </xsl:template>
>
> with keys:
>
> <xsl:key name="links" match="link" use="@id"/>
>
> ? ? ?<a href="key('links',@id)/@value"><xsl:value-of
> select="key('links',@id)/@name"/></a>
>
> "pure XPATH":
>
> ? ? ?<a href="/doc/links/link[@id=current()/@id]/@value"><xsl:value-of
> select="/doc/links/link[@id=current()/@id]/@name"/></a>

-- 
Peter Davis
My theology, briefly, is that the universe was dictated but not signed.
		-- Christopher Morley

 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.