RE: [xsl] Using XSLT's key() function while context in secondary document?

Subject: RE: [xsl] Using XSLT's key() function while context in secondary document?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 19 Feb 2008 09:53:00 -0000
> Is there a way to direct the key() function back to the 
> principal document while the context node is located in 
> another document?
> 

In XSLT 2.0, use the third argument of key() to tell it which document to
search. In 1.0, you need to change context to that document, which you can
do using xsl:for-each.

Michael Kay
http://www.saxonica.com/

Current Thread