Cannot reference to a <row> in a table

Here should go questions about transforming XML with XSLT and FOP.
Nikky_zhang
Posts: 17

Cannot reference to a <row> in a table

Mon Apr 10, 2017 10:00 am

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: 5088

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

Mon Apr 10, 2017 10:13 am

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

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 2 guests