Cross-referencing tables in the same topic
Posted: Mon Aug 21, 2017 7:52 pm
Howdy,
I am trying to create a cross-reference to a table listed in the same topic where I create the reference.
The cross-reference code looks as:
The referenced table looks as:
At build time, I get this error:
The article also provides an example:
Important note:
When editing in Author mode, the reference is rendered without any problems. I see the link to the referenced table (Oxygen automatically substitutes the referenced ID with the title), and this link is also clickable.
However, after transforming this to a PDF, I get the error above, and the link to the table is rendered as:
Thank you.
I am trying to create a cross-reference to a table listed in the same topic where I create the reference.
The cross-reference code looks as:
Code: Select all
<p><note>Parameters support full paths and paths relative to the command line tool. For more information about the <codeph>CODE</codeph> parameter, see table <xref href="#table_yhb_3kr_w1b" type="table"/></note></p>
Code: Select all
<table frame="all" rowsep="1" colsep="1" id="table_yhb_3kr_w1b">
<title>Coding params</title>
<tgroup cols="2" align="left">
...
At build time, I get this error:
The Cross-referencing tables article here says:
Engine name: DITA-OT
Severity: error
Description: [DOTX032E]: Unable to retrieve link text from target: '#table_yhb_3kr_w1b'. If the target is not accessible at build time, or does not have a title, provide the link text inside the reference. The location of this problem was at (File = C:\Users\EH\AppData\Local\Temp\OxygenXMLTemp\ditaTemporaryOutputDir-1503333277382\t1\t2\t3\t4\t5\reference\d\topics\tasks\source_code
My table, however, has a title.Cross-references to tables are accomplished with the xref element with a type attribute of table
...
You cannot cross-reference simple tables, partly because they do not have titles (necessary for labelling the table with a table number.)
The article also provides an example:
Besides the ID attribute, the example also references something named as concept_ej25_perf/. It's unclear from the article, what's that? A title? A topic name?
An example of the syntax of a cross-reference to a table with an id attribute of "table_perf_data" in the same topic is:
<xref href="#concept_ej25_perf/table_perf_data" type="table"/>
Important note:
When editing in Author mode, the reference is rendered without any problems. I see the link to the referenced table (Oxygen automatically substitutes the referenced ID with the title), and this link is also clickable.
However, after transforming this to a PDF, I get the error above, and the link to the table is rendered as:
What am I doing wrong?see table #unique_170
Thank you.