[xep-support] Cross references to figures generates question marks

From: Mark Lautman <mlautman@hns.com>
Date: Fri Sep 28 2007 - 13:24:41 PDT

I'm creating cross references to a heading and a figure. The xrefs to the headings work, but not to the figures.

In the XML file I have

<body>See the section <heading_link target="second_heading" />.</body>
<body>See the figure <figure_link target="browser_settings" />.</body>
...
<Heading1 id="second_heading">Installation</Heading1>
<figure src="browser_settings.tif" id="browser_settings"/>


In the XSL file I have

 <xsl:template match="heading_link">
  <fo:inline>
   <fo:basic-link internal-destination="{@target}">
    <xsl:text> on page&#160;</xsl:text>
    <fo:page-number-citation ref-id="{@target}"/>
   </fo:basic-link>
  </fo:inline>
 </xsl:template>

 <xsl:template match="figure_link">
  <fo:inline>
   <fo:basic-link internal-destination="{@target}">
    <xsl:text> on page&#160;</xsl:text>
    <fo:page-number-citation ref-id="{@target}"/>
   </fo:basic-link>
  </fo:inline>
 </xsl:template>

Result:
See the section on page 3.
See the figure on page ?.

Symptoms:
1) The xref to the Heading1 tag generates the correct page number and hyperlink.
2) The xref to the figure tag gives a question mark for a page number and a dead hyperlink.
3) The engine gives the following mesasge: unresolved internal destination: 'browser_settings'

This is for an unstructured XML file (no DTD).

Suggestions?

------------------- (*) To unsubscribe, send a message with words 'unsubscribe xep-support' in the body of the message to majordomo@renderx.com from the address you are subscribed from. (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html Received on Fri Sep 28 13:44:21 2007

This archive was generated by hypermail 2.1.8 : Fri Sep 28 2007 - 13:44:22 PDT