xsl-list
[Top] [All Lists]

Re: [xsl] filtering maps by key characteristics?

2020-08-24 12:26:11
Am 24.08.2020 um 19:12 schrieb Graydon graydon(_at_)marost(_dot_)ca:
On Mon, Aug 24, 2020 at 04:48:55PM -0000, Michael Kay 
mike(_at_)saxonica(_dot_)com scripsit:
Perhaps something like

map:remove($map, map:keys($map)[starts-with(map:keys(.), 'GUID-')])

"The required item type of the first argument of map:keys() is map(*);
supplied expression (.) has item type xs:anyAtomicType"

I think it should have been

  map:remove($map, map:keys($map)[starts-with(., 'GUID-')])


--~----------------------------------------------------------------
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>