[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Storing a reference to a node


Subject: Storing a reference to a node
From: "Kuijk van, David" <David@xxxxxx>
Date: Thu, 25 Nov 1999 13:47:03 +0100

Hi

I am new to XSLT, and I was wondering whether it is possible to store a
reference to a paticular node. This can be useful if one would want to
postpone generating output for a particular node after nodes further down
the tree have been processed. 

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:

<xsl:variable name="ID">
	<xsl:value-of select="generate-id()"/>
</xsl:variable>

<xsl:value-of select="id($ID)"/>

Does anybody have suggestions?

Thanks in advance.

Cheers,
David


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



Current Thread
Keywords