Home › Forums › DITA and XMetaL Discussion › Cross reference to a target element with ID works in PDF but not in Eclipse/HTML › Reply To: Cross reference to a target element with ID works in PDF but not in Eclipse/HTML
Reply to: Cross reference to a target element with ID works in PDF but not in Eclipse/HTML
July 26, 2011 at 6:05 pmIn order to get a browser to jump to a specific part in a document the HTML needs an “anchor” in addition to the link that is inserted for the
What needs to appear in the HTML output is something like the following (roughly the same as the other types of anchors the DITA OT generates for HTML output):
[code]…
…[/code]
Note that I have simplified the HTML above for clarity. The DITA OT actually puts in a lot more attributes.
The simplest workaround I can think of that requires making no modifications to the DITA OT is to:
1. Wrap the contents of the
This includes
. So you will then have this type of content:
YYYY Property
2. Create the xref so that it points to the
.
The proper fix (to support your xrefs as written) would be to modify the DITA OT so that it does insert elements when you link to a table
I have not tested this with Eclipse, but since it ultimately consumes HTML as well the issue must be similar.