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:31 pmThanks for that, I had just discovered that wrapping the table text in a
tag does in fact create a link that works in both PDF and HTML output, but your more detailed explanation about why is very useful.
One little thing that threw me off is that at the start of this I did have the entries in paragraphs, as in
text here
, but when I selected the
element and assigned the ID there, it assigned the ID to the entry, not the paragraph.
Which makes sense, since it's going to assign the ID to whatever element your cursor is in when you add the ID. To assign the ID to the paragraph you have to just put the cursor inside of it, because if you select it, you're really located in the
tags, until I realized that.
I guess what you describe could be the ultimate fix, but for me just telling everyone that we have to put table entries inside of paragraph tags, and the right way to assign the ID, seems close enough.
This does all work in Eclipse by the way which as you say is really just HTML, and it works with Chrome and Firefox, takes me right to the specific table cell.
Thanks again,