|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Storing a 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








