Re: [xsl] xsl:key, predicates and documents.

Subject: Re: [xsl] xsl:key, predicates and documents.
From: Nic Gibson <nicg@xxxxxxxxxx>
Date: Fri, 14 May 2010 14:09:22 +0000
On Fri, May 14, 2010 at 03:01:04PM +0100, David Carlisle wrote:
> On 14/05/2010 14:28, Nic Gibson wrote:
> ><xsl:template match="eData[@PERS='n']">
> >     <xsl:variable name="exact" select="key('term-key', @HW)"/>
> >     ...
> >
> 
> are your edata and e elements in the same file?
> The above will look for e elements with the same PER[s] and HW
> attributes as the current eData element, in the same file.
> I got the impression from the earlier description that you had two
> files involved.

No, they're in different documents. @HW is an element in a document
loaded via document() and the key is based on the primary input
document (and I think Martin Honnen just made me remember where I was
going wrong).

cheers

nic
> 
> David
> 
> ________________________________________________________________________
> The Numerical Algorithms Group Ltd is a company registered in England
> and Wales with company number 1249803. The registered office is:
> Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
> 
> This e-mail has been scanned for all viruses by Star. The service is
> powered by MessageLabs. ________________________________________________________________________

Current Thread