Page 1 of 1

Cannot reference to a <row> in a table

Posted: Mon Apr 10, 2017 10:00 am
by Nikky_zhang
Hi,

I am facing a problem about referencing to a <row> in a table.

The environment I am using is

Oxygen 17.0

DITA-OT 1.8.5

I create a table with Oxygen, and add an id in a <row>, for example

Code: Select all

<p>
<talbe frame="all" rowsep="1">
<title/>
<tgroup cols="2">
<colspec colname="c1" colnum="1" colwidth="1.0"/>
<colspec colname="c2" colnum="2" colwidth="1.0*/>
<thead>
<row>
<entry>test1</entry>
<entry>test2</entry>
</thead>
<tbody>
<row id="test">
<entry>test3</entry>
<entry>test4</entry>
</row>
</tbody>
</tgroup>
</table>


After that, I made a link in the same doc, such as

Code: Select all

<p>Refer to <xref href="concep_ujr_4r3_nx/test5 format="dita">test5</xref></p>


But we it is transformed to PDF. the link is broken.

Anyone can tell me why?

Thank you very much

Nikky

Re: Cannot reference to a <row> in a table

Posted: Mon Apr 10, 2017 10:13 am
by Radu
Hi Nikky,

As far as I remember the Apache FOP PDF processor has a problem with links to table rows:

https://issues.apache.org/jira/browse/FOP-2110

Sometime in a DITA OT 2.x release a workaround was made for this problem by automatically considering that the ID should point to the first cell in the table row. But as you are using an older DITA OT you will probably have to manually set the ID on the first cell in the table row.

Regards,
Radu