[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: filtering maps by key characteristics?

Subject: Re: filtering maps by key characteristics?
From: "Graydon graydon@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 24 Aug 2020 17:44:35 -0000
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.")

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.