Re: [xsl] Converting a sequence of xs:string to a map

Subject: Re: [xsl] Converting a sequence of xs:string to a map
From: "Marc marc.liste@xxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 12 Jan 2026 20:53:51 -0000
Hi Christophe
I don't have a computer under my fingers, but something like
Map:new(("Amount" ,"vat","rate")!map:entry(.,position()))
Marc

12 janv. 2026 21:48:43 Christophe Marchand christophe@xxxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>:

> Hello !
>
> I leave my legacy job, so I now use my personal mail address...
>
> I have a sequence of xs:string : ('amount', 'vat-rate', 'total')
> And I want a map where keys are the labels from the sequence, and values are
the position of label in sequence : { 'amount': 1, 'vat-rate': 2, 'total': 3}
>
> Any help will be much appreciated, as my XPath is very rustyB  !
> Thanks in advance,
> Christophe
>
> XSL-List info and archive[http://www.mulberrytech.com/xsl/xsl-list]
> EasyUnsubscribe[http://lists.mulberrytech.com/unsub/xsl-list/763474] (by
email[])

Current Thread