xsl-list
[Top] [All Lists]

Re: [xsl] $variable//childNode

2006-06-14 11:11:36
On 6/14/06, Steve <subsume(_at_)gmail(_dot_)com> 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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>