Hi Emux, I did it, not working.
Here's my match script:
<translation>
<name>Rock name</name>
<description>
</description>
<match mode="and">
<tag k="height" v="([0-9]+)" match_id="ht_nm"/>
<tag k="name" v="(.+)" match_id="ht_nm"/>
</match>
<output>
<copy-all/>
<tag from_match="ht_nm" k="name_corrected" v="{1}{2}"/>
</output>
</translation>
End result is: I get a field "name_corrected". There I get
'somename{2}'. It seems that the {2} match group is just missing. My
suggestion is that finally match_id="ht_nm" comes from the <tag
k="name" v="(.+)" match_id="ht_nm"/> only and the first tag match for
height is simply overwritten.
I tried also to put both tags into separate match_ids, e.g.
<match mode="and">
<tag k="height" v="([0-9]+)" match_id="ht"/>
<tag k="name" v="(.+)" match_id="nm"/>
</match>
but I don't know how to combine them in the output, e.g. in a similar
(here illegal) way:
<output>
<copy-all/>
<tag from_match="ht from_match="nm" k="name_corrected" v="{1}{2}"/>
</output>
> --
> You received this message because you are subscribed to the Google Groups "Mapsforge & VTM" group.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/mapsforge-dev/21e4265d-f8c4-96f4-a5ff-45cd51915e2c%40gmail.com.