On Mon, Aug 24, 2020 at 05:26:11PM -0000, Martin Honnen
martin(_dot_)honnen(_at_)gmx(_dot_)de scripsit:
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-')])
And indeed so it should!
Thank you both, that will be useful.
(It would perhaps be nice to have map:filter, that does what map:remove
does in a positive way.)
--
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
--~--