This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Multiple instances of the same nodeset - is this possible.
- From: "James Fuller" <james dot fuller at o-idev dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 5 Aug 2002 08:32:17 +0100
- Subject: RE: [xsl] Multiple instances of the same nodeset - is this possible.
- Reply-to: xsl-list at lists dot mulberrytech dot com
> My question is this - Is it somehow possible to have two independent
> nodesets with identical data that you can traverse simultaneously?
Not sure what you mean, but if you want you can always place a nodeset in a
variable using
<xsl:variable name="testa" select="NODE"/>
<xsl:variable name="testb" select="NODE"/>
the above variables contain the same nodeset, assumming if there was a NODE
element
<xsl:variable name="testa" select="document('a.xml')"/>
<xsl:variable name="testb" select="document('b.xml')"/>
the above illustrates 2 nodesets, using the document command as an example.
sometimes, you will have to be a little bit careful, because if you are
getting a result tree fragment and wanting to do further processing, you
have to convert it back to a nodeset using the XSLT processor native nodeset
command ( which is always a 3rd party cmd ).
good luck, doing whatever you are trying to do !
cheers, Jim Fuller
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list