Cool--I don't think I realized XQuery 3 had grouping. That's very handy.
Cheers,
E.
--
Eliot Kimber
http://contrext.com
On 12/13/18, 12:50 PM, "Martin Honnen martin(_dot_)honnen(_at_)gmx(_dot_)de"
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:
On 13.12.2018 19:40, Eliot Kimber ekimber(_at_)contrext(_dot_)com 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.
--~----------------------------------------------------------------
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
--~--