xsl-list
[Top] [All Lists]

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

2010-05-14 09:09:51
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[(_at_)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. 
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--