Bug 601363 - cross reference not jumping to figures, tables
Summary: cross reference not jumping to figures, tables
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Publican
Classification: Community
Component: publican
Version: 1.6
Hardware: alpha
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jeff Fearn 🐞
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 603950 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-06-07 19:13 UTC by Kinman Cheung
Modified: 2010-11-24 04:19 UTC (History)
4 users (show)

Fixed In Version: 2.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-08-05 04:16:20 UTC
Embargoed:


Attachments (Terms of Use)

Description Kinman Cheung 2010-06-07 19:13:16 UTC
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):


How reproducible:
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>
    <mediaobject>
      <imageobject>
        <imagedata contentwidth='100px' contentdepth='100px' align='center' fileref='images/my_diagram.png' format='PNG' />
      </imageobject>
    </mediaobject>
  </figure>
5. Add a table:
  <table id='foo2'><title>My Table</title><tgroup cols='2'><tbody>
    <row>
      <entry>1</entry>
      <entry>2</entry>
    </row>
    <row>
      <entry>3</entry>
      <entry>4</entry>
    </row>
  </tbody></tgroup></table>
6. Add a subsection: <section id='foo3'><title>My Section</title><para>whatever</para></section>
7. build the HTML with publican
  
Actual results:
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.

Expected results:
The link to the table and the figure should also jump to their targets.

Additional info:
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

Comment 1 Jeff Fearn 🐞 2010-06-09 04:07:30 UTC
ID's were not being set in the output for some formal objects.

Fixed in build 1.6.3-0.t99

Comment 2 Jeff Fearn 🐞 2010-06-15 00:45:03 UTC
*** Bug 603950 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.