RE: [xsl] Parsing two XML files at the same time

Subject: RE: [xsl] Parsing two XML files at the same time
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Tue, 8 Jul 2003 09:39:38 +0100
> So, I am in the first XML, do some processing, write the IDs 
> in the 2nd XML. Then I open 2nd XML, read the ID and now I 
> want to go back to first XML, find the matching articles and 
> list the descriptions for those. Any help is greatly appreciated.

The standard approach is to declare a global variable

<xsl:variable name="root" select="/"/>

and then you can refer to your primary input document at any time using
the variable $root.

Michael Kay


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


Current Thread