If I have the following input xml and I want to ouput a standard html table with number of rows equal to aid:trows and number of columns equal to aid:tcols how would I do it? Just standard html with table tr td tags
Code:
<?xml version="1.0" encoding="UTF-8"?>
<Table xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/" aid:table="table"
aid:trows="2" aid:tcols="3" summary="NOCHANGE">
<Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="184"
larghezza="33%">
<_B>
<img_html href="file://./NOME_1.eps" proporzione_x="31"
id="50211557" proporzione_h="32" proporzione_w="32"
alkusetype="3"/>
</_B>
</Cell>
<Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="184"
larghezza="33%">
<_centro>
<img_html href="file://./LUNGHEZZA_1.eps" proporzione_x="31"
id="50211532" proporzione_h="34" proporzione_w="55"
alkusetype="3"/>
</_centro>
</Cell>
<Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="184"
larghezza="33%">
<img_html href="file://./TIPO_1.eps" proporzione_x="31" id="50211586"
proporzione_h="78" proporzione_w="79" alkusetype="3"/>
</Cell>
<Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="184"
larghezza="33%">12613</Cell>
<Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="184"
larghezza="33%">130</Cell>
<Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="184"
larghezza="33%">ø25 - 1"3/8" Z6</Cell>
</Table>
I tried doing a for-each loop from 1 to aid:trows to output the correct number of tr tags but then I can't select any elements inside this as the context node is an atomic.
Do I have to use recursion?
Any suggestions would be great. Thank you.