I'm trying to create a script that automatically places XLIFF in-line elements into <target> elements. Starting from the beginning, I have these HTML texts:
EN: The <b>big black</b> cat sleeps.
ES: El <b>gran</b> gato <b>negro</b> duerme.
When converted to XLIFF, they become:
<source lang="EN">The <g id="1">big black</g> cat sleeps.</source>
<target lang="ES:>El <g id="1">gran</g> gato <g id="1">negro</g> duerme.</target>
The XLIFF 1.2 spec says, "The value of the id element is determined by the tool creating the XLIFF document." So, is the above example that repeats the "=1" value acceptable, or should I increment it to "=2"?