xsl-list
[Top] [All Lists]

Re: [xsl] filtering maps by key characteristics?

2020-08-24 12:12:43
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"

So far as I can tell, maps are resistant to being considered as
sequences of entries.


-- 
Graydon Saunders  | graydonish(_at_)gmail(_dot_)com
Þæs oferéode, ðisses swá mæg.
-- Deor  ("That passed, so may this.")
--~----------------------------------------------------------------
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>