Skip to main content
Participant
June 12, 2025
Question

Table Style

  • June 12, 2025
  • 1 reply
  • 225 views

<div class="tabletypefive" data-colcount="4" data-indexid="c0001-d0520" type="unnumTable" id="ch1_unnum3">
<table aid:tstyle="TABLE 5_NUM_L_R_Rule_outer" class="tabletypefive" diaTableWidthCalculated="50.50pt,50.45pt,50.50pt,34.25pt" trhead="0" diastyle="inlineTable" aid:pstyle="inlineTable">
<colgroup>
<col data-colalign="left" data-colname="col1" data-colnum="1" style="width: 50.50pt;"/>
<col data-colalign="center" data-colname="col2" data-colnum="2" style="width: 50.45pt;"/>
<col data-colalign="center" data-colname="col3" data-colnum="3" style="width: 50.50pt;"/>
<col data-colalign="center" data-colname="col4" data-colnum="4" style="width: 34.25pt;"/>
</colgroup>
<tbody aid:table="table" aid:tstyle="TABLE 5_NUM_L_R_Rule_outer" aid:trows="4" aid:tcols="4">
<tr aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="50.5">
<td data-indexid="c0001-t0945" style="text-align: center;"/>
</tr>
<tr aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="50.45">
<td data-indexid="c0001-t0950" style="text-align: center;">
<p type="paragraph" data-indexid="c0001-p2250" diastyle="TB" aid:pstyle="TB">Outcome A</p>&#x2029;</td>
</tr>
<tr aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="50.5">
<td data-indexid="c0001-t0955" style="text-align: center;">
<p type="paragraph" data-indexid="c0001-p2255" diastyle="TB" aid:pstyle="TB">Outcome B</p>&#x2029;</td>
</tr>
<tr aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="34.25">
<td data-indexid="c0001-t0960" style="text-align: center;">
<p type="paragraph" data-indexid="c0001-p2260" diastyle="TB" aid:pstyle="TB">Total</p>&#x2029;</td>
</tr>
<tr aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="50.5">
<td data-indexid="c0001-t0965">
<p type="paragraph" data-indexid="c0001-p2265" diastyle="TB" aid:pstyle="TB">Group 1</p>&#x2029;</td>
</tr>
<tr aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="50.45">
<td data-indexid="c0001-t0970" style="text-align: center;">
<p type="paragraph" data-indexid="c0001-p2270" diastyle="TB" aid:pstyle="TB">20</p>&#x2029;</td>
</tr>
<tr aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="50.5">
<td data-indexid="c0001-t0975" style="text-align: center;">
<p type="paragraph" data-indexid="c0001-p2275" diastyle="TB" aid:pstyle="TB">80</p>&#x2029;</td>
</tr>
<tr aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="34.25">
<td data-indexid="c0001-t0980" style="text-align: center;">
<p type="paragraph" data-indexid="c0001-p2280" diastyle="TB" aid:pstyle="TB">100</p>&#x2029;</td>
</tr>
<tr aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="50.5">
<td data-indexid="c0001-t0985">
<p type="paragraph" data-indexid="c0001-p2285" diastyle="TB" aid:pstyle="TB">Group 2</p>&#x2029;</td>
</tr>
<tr aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="50.45">
<td data-indexid="c0001-t0990" style="text-align: center;">
<p type="paragraph" data-indexid="c0001-p2290" diastyle="TB" aid:pstyle="TB">60</p>&#x2029;</td>
</tr>
<tr aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="50.5">
<td data-indexid="c0001-t0995" style="text-align: center;">
<p type="paragraph" data-indexid="c0001-p2295" diastyle="TB" aid:pstyle="TB">40</p>&#x2029;</td>
</tr>
<tr aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="34.25">
<td data-indexid="c0001-t1000" style="text-align: center;">
<p type="paragraph" data-indexid="c0001-p2300" diastyle="TB" aid:pstyle="TB">100</p>&#x2029;</td>
</tr>
<tr aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="50.5">
<td data-indexid="c0001-t1005">
<p type="paragraph" data-indexid="c0001-p2305" diastyle="TB" aid:pstyle="TB">Total</p>&#x2029;</td>
</tr>
<tr aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="50.45">
<td data-indexid="c0001-t1010" style="text-align: center;">
<p type="paragraph" data-indexid="c0001-p2310" diastyle="TB" aid:pstyle="TB">80</p>&#x2029;</td>
</tr>
<tr aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="50.5">
<td data-indexid="c0001-t1015" style="text-align: center;">
<p type="paragraph" data-indexid="c0001-p2315" diastyle="TB" aid:pstyle="TB">120</p>&#x2029;</td>
</tr>
<tr aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="34.25">
<td data-indexid="c0001-t1020" style="text-align: center;">
<p type="paragraph" data-indexid="c0001-p2320" diastyle="TB" aid:pstyle="TB">200</p>&#x2029;</td>
</tr>
</tbody>
</table>&#x2029;</div>

 

it doesnt work.

Any idea on how it's possible to assign table style in the imported XML?

 

 

1 reply

Community Expert
June 12, 2025

AFAIK InDesign won’t apply a table style just because the XML says aid:tstyle. You might need to script it, transform it with XSLT, or reformat the content as TaggedText.

Suriya GAuthor
Participant
June 12, 2025

Hi Eugene Tyson,

     

Okay I understand give any exapmles for the table style process.

 

Community Expert
June 12, 2025

Would need to see it to be honest, any example files and your exact process?

Could try a few things with an example and see if they work.