xsl-list
[Top] [All Lists]

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

2019-06-06 10:18:24
On 06.06.2019 17:15, Costello, Roger L. costello(_at_)mitre(_dot_)org 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']
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>