Better id convention for properties + html subfilter

Issue #216 open
Former user created an issue

Original issue 216 created by mihn... on 2012-04-12T20:23:49.000Z:

I am using a properties file that looks like this:
someKey1=<ul><li id="one">item 1</li><li id="two">item 2</li></ul>
someKey2=<ul><li>item 1</li><li id="two">item 2</li></ul>
someKey3=<ul><li>item 1</li><li>item 2</li></ul>

Processing it using okf_properties-html-subfilter (in rainbow, 16-SNAPSHOT) I get something like this (source and target removed for brevity:

<group id="P31-1" resname="sub-filter:">  
    <trans-unit id="tu1" resname="one-id" restype="x-li" />  
    <trans-unit id="tu2" resname="two-id" restype="x-li" />  
</group>  
<group id="P32-1" resname="sub-filter:">  
    <trans-unit id="tu1" resname="someKey2-1" restype="x-li" />  
    <trans-unit id="tu2" resname="two-id" restype="x-li" />  
</group>  
<group id="P33-1" resname="sub-filter:">  
    <trans-unit id="tu1" resname="someKey3-1" restype="x-li" />  
    <trans-unit id="tu2" resname="someKey3-2" restype="x-li" />  
</group>

In group 1 "someKey1" is lost, in group 2 "someKey2" is lost for one of the entries, and in group 3 the IDs of the LIs are lost.

I would have expected something like this:

<group id="someKey1" resname="sub-filter:">  
    <trans-unit id="tu1" resname="one" restype="x-li" />  
    <trans-unit id="tu2" resname="two" restype="x-li" />  
</group>  
<group id="someKey2" resname="sub-filter:">  
    <trans-unit id="tu1" restype="x-li" />  
    <trans-unit id="tu2" resname="two" restype="x-li" />  
</group>  
<group id="someKey2" resname="sub-filter:">  
    <trans-unit id="tu1" restype="x-li" />  
    <trans-unit id="tu2" restype="x-li" />  
</group>

Or even this

<group id="P31-1" resname="sub-filter:">  
    <trans-unit id="tu1" resname="someKey1-one-id" restype="x-li" />  
    <trans-unit id="tu2" resname="someKey1-two-id" restype="x-li" />  
</group>  
<group id="P32-1" resname="sub-filter:">  
    <trans-unit id="tu1" resname="someKey2-1" restype="x-li" />  
    <trans-unit id="tu2" resname="someKey2-two-id" restype="x-li" />  
</group>  
<group id="P33-1" resname="sub-filter:">  
    <trans-unit id="tu1" resname="someKey3-one-id" restype="x-li" />  
    <trans-unit id="tu2" resname="someKey3-two-id" restype="x-li" />  
</group>

I am not bothered to much about the expectation, but this is a loss of context information.

Thank you,
Mihai

Comments (5)

  1. Log in to comment