RE: Keys across multilple input files

Subject: RE: Keys across multilple input files
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Mon, 5 Jun 2000 13:03:52 +0100
> 	> 1.  Can I use the xsl:key element to generate keys for CLASS 
> 	> elements that are each contained in separate files?
> 	
> 	Not in any useful way. The key() function can only be 
> used to find nodes in the current document.
> 	   
> 	  ** But, I thought you could use the <xsl:for-each> statement 
> 	  ** with the document() function to change the current context 
> 	  ** node to the root node in different file.  Then, you could
> 	  ** use the key() function to access the keys in the remote
> 	  ** file.  Have I misunderstood?
>
That's correct. What I was trying to say is that you can't use key() to find
nodes unless you know what document they are in. 

Mike K	


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


Current Thread