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]

RE: Keys across multilple input files


> 	> 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

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