[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: filtering maps by key characteristics?
On Mon, Aug 24, 2020 at 05:26:11PM -0000, Martin Honnen martin.honnen@xxxxxx scripsit: > Am 24.08.2020 um 19:12 schrieb Graydon graydon@xxxxxxxxx: > > On Mon, Aug 24, 2020 at 04:48:55PM -0000, Michael Kay mike@xxxxxxxxxxxx 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@xxxxxxxxx ^fs oferiode, pisses swa mfg. -- Deor ("That passed, so may this.")
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|