Re: [xsl] How to create xsl:key that has a composite value in its "use" attribute?

Subject: Re: [xsl] How to create xsl:key that has a composite value in its "use" attribute?
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 15 Mar 2025 14:06:23 -0000
On 15/03/2025 14:19, Roger L Costello costello@xxxxxxxxx wrote:
<result>
     <xsl:sequence select="key('ANAV-to-BDRY', (NAV_IDENT, NAV_CTRY,
NAV_TYPE))/BDRY_IDENT"/>
</result>

That must be incorrect because the <result> element is erroneously populated
with a <BDRY_IDENT> element for every <row> element in <BDRY>:

<result> <BDRY_IDENT>...</BDRY_IDENT> <BDRY_IDENT>...</BDRY_IDENT> <BDRY_IDENT>...</BDRY_IDENT> ... <!-- thousands of them --> </result>

What am I doing wrong?


At least show us minimal but complete samples to allow us to reproduce
that, without any context for the shown

B B xsl:sequence select="key(...)"

call it is hard to tell whether there should no match, a single one or
why there would be thousands.

Current Thread