Sorry ich schon wieder,
Problem: Das Attribut number-columns-repeated kürzt 2 table-cell Tags ab. Ich möchte aber, dass die table-cells drinnen sind und dass das Attribut verschwindet. 2 bedeutet eins mehr 3, falls man das table-cell löscht.
ansonsten sind es mit table-cell Element = 2 weitere table-cells.
XML:
<root>
<table-row>
<table-cell number-columns-repeated="2"/>
<table-cell>test</table-cell>
<table-cell/>
<table-cell>test</table-cell>
</table-row>
<table-row>
<table-cell>test</table-cell>
<table-cell/>
<table-cell>test</table-cell>
<table-cell number-columns-repeated="3"/>
</table-row>
</root>
End XML:
<root>
<table-row>
<table-cell/>
<table-cell/>
<table-cell/>
<table-cell>test</table-cell>
<table-cell/>
<table-cell>test</table-cell>
</table-row>
<table-row>
<table-cell>test</table-cell>
<table-cell/>
<table-cell>test</table-cell>
<table-cell/>
<table-cell/>
<table-cell/>
<table-cell/>
</table-row>
</root>
Hintergrund:
Wenn ich die Abkürzungen weg habe, dann kann ich mit position() arbeiten. Ich kenne ja die Tabellengröße. Also z.B. Tabelle hat 5 Spalten [1]-[5]. Dann gäbe es keine ständigen Abfragen.
Vielen Dank,
Tamer
Problem: Das Attribut number-columns-repeated kürzt 2 table-cell Tags ab. Ich möchte aber, dass die table-cells drinnen sind und dass das Attribut verschwindet. 2 bedeutet eins mehr 3, falls man das table-cell löscht.
ansonsten sind es mit table-cell Element = 2 weitere table-cells.
XML:
<root>
<table-row>
<table-cell number-columns-repeated="2"/>
<table-cell>test</table-cell>
<table-cell/>
<table-cell>test</table-cell>
</table-row>
<table-row>
<table-cell>test</table-cell>
<table-cell/>
<table-cell>test</table-cell>
<table-cell number-columns-repeated="3"/>
</table-row>
</root>
End XML:
<root>
<table-row>
<table-cell/>
<table-cell/>
<table-cell/>
<table-cell>test</table-cell>
<table-cell/>
<table-cell>test</table-cell>
</table-row>
<table-row>
<table-cell>test</table-cell>
<table-cell/>
<table-cell>test</table-cell>
<table-cell/>
<table-cell/>
<table-cell/>
<table-cell/>
</table-row>
</root>
Hintergrund:
Wenn ich die Abkürzungen weg habe, dann kann ich mit position() arbeiten. Ich kenne ja die Tabellengröße. Also z.B. Tabelle hat 5 Spalten [1]-[5]. Dann gäbe es keine ständigen Abfragen.
Vielen Dank,
Tamer
Comment