|
Subject: Re: [xsl] filtering maps by key characteristics? From: "Graydon graydon@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Mon, 24 Aug 2020 17:44:35 -0000 |
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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] filtering maps by key cha, Martin Honnen martin | Thread | [xsl] Attribute order recommendatio, Michael Müller-Hille |
| Re: [xsl] filtering maps by key cha, Martin Honnen martin | Date | [xsl] Attribute order recommendatio, Michael Müller-Hille |
| Month |