Red Hat Bugzilla – Bug 601363
cross reference not jumping to figures, tables
Last modified: 2010-11-23 23:19:09 EST
Description of problem:
The xref element generates the text for a figure or title correctly, but does not jump to that section of the html document when the link is clicked. Xref works as expected when used on sections.
Version-Release number of selected component (if applicable):
Open or edit an XML file and add a xref for a section, figure, and table. Add filler text, a subsection, image, and table that gets referenced. Build with publican and view the HTML.
Steps to Reproduce:
1. Open / edit a XML file
2. Add cross reference links: <xref linkend='foo1' />, <xref linkend='foo2' />, and <xref linkend='foo3' />
3. Add filler text (<para>whatever</para>) to stretch the page vertically
4. Add a diagram with <figure>:
<figure id='foo1'><title>My Diagram</title>
<imagedata contentwidth='100px' contentdepth='100px' align='center' fileref='images/my_diagram.png' format='PNG' />
5. Add a table:
<table id='foo2'><title>My Table</title><tgroup cols='2'><tbody>
6. Add a subsection: <section id='foo3'><title>My Section</title><para>whatever</para></section>
7. build the HTML with publican
The links are generated with the correct text (Figure 1, "My Diagram", Table 1, "My Table", Section 1, "My Section") but only the link to the section actually jumps to the target.
The link to the table and the figure should also jump to their targets.
Tested with both double and single qoutes for linkend and id, bugged with both.
Actual file: file:///home/remote/kcheung/cc/RHCS8_CommonCriteria/Evidence_Documents/en-US/life-cycle/life-cycle_FLR.xml
ID's were not being set in the output for some formal objects.
Fixed in build 1.6.3-0.t99
*** Bug 603950 has been marked as a duplicate of this bug. ***