This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Multiple instances of the same nodeset - is this possible.


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]