|
Subject: Re: [xsl] Sequence count vs. context position From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 4 Oct 2024 10:17:22 -0000 |
>> key('keyName', $keyValue)[.[1]]
>
> the effective boolean value of .[1] is always true so that is the same as
> key('keyName', $keyValue)
>
Indeed. key() returns a sequence of nodes, therefore "." in the predicate is
always a single node, therefore .[1] is a single node, which has an EBV of
true.
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Sequence count vs. contex, David Carlisle d.p.c | Thread | Re: [xsl] Sequence count vs. contex, Michael Kay michaelk |
| Re: [xsl] Sequence count vs. contex, David Carlisle d.p.c | Date | Re: [xsl] Sequence count vs. contex, Joel Kalvesmaki dire |
| Month |