Subject: Re: [xsl] xsl:key, predicates and documents. From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Fri, 14 May 2010 16:03:28 +0200 |
On Fri, May 14, 2010 at 02:36:18PM +0100, Andrew Welch wrote:So, I created keys that look like this:...
? ?<xsl:key name="term-key" select="e[@PER='n']" use="@HW"/> ? ?<xsl:key name="person-key" select="e[@PER='y']" use="@SUR"/><xsl:template match="eData[@PERS='n']"> ? ?<xsl:variable name="exact" select="key('term-key', @HW)"/> ? ?...
</xsl:template>
We know that there are matches yet this doesn't work unless we remove the predicate from the key definition. Are predicates usable in key definitions?It's much harder to help without seeing any input, but I can see a PER vs PERS difference in the code there... is that it?
Good point but that's just my retyping error. The attribute is @PER. I'm just trying to get some data from its owner
Martin Honnen http://msmvps.com/blogs/martin_honnen/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xsl:key, predicates and d, Nic Gibson | Thread | Re: [xsl] xsl:key, predicates and d, Nic Gibson |
Re: [xsl] xsl:key, predicates and d, David Carlisle | Date | Re: [xsl] xsl:key, predicates and d, Nic Gibson |
Month |