Re: [xsl] Each value in an XPath array is a sequence of elements... how to access a particular element in a particular array value?

Subject: Re: [xsl] Each value in an XPath array is a sequence of elements... how to access a particular element in a particular array value?
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 6 Jun 2019 15:18:19 -0000
On 06.06.2019 17:15, Costello, Roger L. costello@xxxxxxxxx wrote:
Hi Michael,

That XPath expression yields the empty set.

I created these variables:

<xsl:variable name="first-group" select="$groups[1]" />
<xsl:variable name="Foo-row-first-group" select="($first-group?*)/row[Data
eq 'Foo']"/>


I typed the variables as array(element(row))* that is, a sequence of arrays of "row" elements. So don't use the /row step, the array directly contains row elements with "Data" child elements: $first-group?*[Data = 'Foo']

Current Thread