Re: [xsl] $variable//childNode

Subject: Re: [xsl] $variable//childNode
From: "andrew welch" <andrew.j.welch@xxxxxxxxx>
Date: Wed, 14 Jun 2006 18:55:14 +0100
On 6/14/06, Steve <subsume@xxxxxxxxx> wrote:
Has this functionality (accessing children of variable select=""'s as
nodes) been added in 2.0?

If so, how?

For various reasons I need to store a tree within a
variable-like-situation. Yes I've seen node-set() and other methods.

In 2.0 you can access the contents of variables as if they were source documents, eg:

<xsl:variable name="foo">
 <node>
   <child>bar</child>
 </node>
</xsl:variable/>

and

<xsl:value-of select="$foo//child"/>

cheers
andrew

Current Thread