Cannot reference to a <row> in a table

Here should go questions about transforming XML with XSLT and FOP.
Nikky_zhang
Posts: 18
Joined: Thu Jan 21, 2016 10:28 am

Cannot reference to a <row> in a table

Post 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
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply