I need to process and group items from the following string:
"fl, ob1, ob2, cordib (Fa), fag1, fag2, cor1 (Fa), cor2 (Fa), vl1, vl2, vla1, vla2, Vitellia, vlc-b"
I tried to implement it utilizing maps and recursive templates approach and result should like this:
map {
"fl": 1,
"ob": 2,
"cordib": 1,
"fag": 2,
...
"vlc-b": 1
}
I need to preserve the order, but by default maps does not seem to allow this. Is it possible to enable this?
Colud there be any other aproach to achieve this in XSLT?