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

RE: Storing a reference to a node

Subject: RE: Storing a reference to a node
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Mon, 29 Nov 1999 18:26:18 -0000
reference to a node
> I am new to XSLT, and I was wondering whether it is possible 
> to store a reference to a paticular node.

Use:
 <xsl:variable name="thisnode" select="."/>
 <xsl:value-of select="$thisnode/>

> I tried to achieve sth like this by using generate-id() to 
> store the id for a specific node in a xsl:variable, and then look up the
node 
> with id(), but that does not seem to work:
> 

generate-id() generates a new identifier for a node, unrelated to any
identifier present in the source document; id() locates a node using an
identifier already present in the source document. There is no inverse to
generate-id() (ie. find the node whose generated id would be X), other than
of course the horrendous "//node()[generate-id()==$id]".

Mike Kay


 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.