Re: [xsl] Efficient XPath 2.0 expression to return each <row> element for which there are other <row> elements having the same navaid?

Subject: Re: [xsl] Efficient XPath 2.0 expression to return each <row> element for which there are other <row> elements having the same navaid?
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 13 Dec 2018 18:50:36 -0000
On 13.12.2018 19:40, Eliot Kimber ekimber@xxxxxxxxxxxx wrote:
If this is a real task support effort and not just a learning exercise and you're using Oxygen then I would follow Graydon's lead and use XQuery 3 to build a map that can then give you a quick answer.


If you move from XPath 2 to XQuery 3 you can as well solve it with grouping

  for $row in /airports/row
  group by $id := $row/navaid
  where $row[2]
  return $row

instead of having to build a map.

Current Thread