<FONT face="Default Sans Serif, Verdana, Arial, Helvetica, sans-serif" size=2><DIV>Ken's observation put me on the path of the righteous.&nbsp;The following creates the targets for&nbsp;cross-references:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&lt;xsl:template match="figure"&gt;<BR>&nbsp;&nbsp;&lt;fo:block&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;xsl:attribute name="id"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&lt;xsl:value-of select="generate-id()"/&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;/xsl:attribute&gt;<BR>&nbsp;(other stuff...)&nbsp;</DIV><DIV>&lt;/fo:block&gt;</DIV><DIV>&lt;/xsl:template&gt;&nbsp;<BR></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><FONT color=#990099>-----owner-xep-support@renderx.com wrote: -----<BR><BR></FONT>To: xep-support@renderx.com, xep-support@renderx.com<BR>From: "G. Ken Holman" &lt;gkholman@CraneSoftwrights.com&gt;<BR>Sent by: owner-xep-support@renderx.com<BR>Date: 09/29/2007 02:24AM<BR>Subject: Re: [xep-support] Cross references to figures generates  question marks<BR><BR><font face="monospace" size=2><BR>At 2007-09-28 16:24 -0400, Mark Lautman wrote:<BR>&gt;I'm creating cross references to a heading and a figure. The xrefs <BR>&gt;to the headings work, but not to the figures.<BR>&gt;<BR>&gt;In the XML file I have<BR>&gt;<BR>&gt;&lt;body&gt;See the section &lt;heading_link target="second_heading" /&gt;.&lt;/body&gt;<BR>&gt;&lt;body&gt;See the figure &lt;figure_link target="browser_settings" /&gt;.&lt;/body&gt;<BR>&gt;...<BR>&gt;&lt;Heading1 id="second_heading"&gt;Installation&lt;/Heading1&gt;<BR>&gt;&lt;figure src="browser_settings.tif" id="browser_settings"/&gt;<BR>&gt;<BR>&gt;In the XSL file I have<BR>&gt;<BR>&gt; &nbsp;&lt;xsl:template match="heading_link"&gt;<BR>&gt;...<BR>&gt; &nbsp;&lt;xsl:template match="figure_link"&gt;<BR>&gt;...<BR>&gt;Result:<BR>&gt;See the section on page 3.<BR>&gt;See the figure on page ?.<BR>&gt;...<BR>&gt;3) The engine gives the following mesasge: unresolved internal <BR>&gt;destination: 'browser_settings'<BR><BR>What you are not showing is the template match="figure" ... that is <BR>where your problem is ... you are not seeding the area tree with an <BR>id= that can be resolved.<BR><BR>Review your template match for figure and add id= to the one of the <BR>areas you create that makes sense for your situation.<BR><BR>&gt;This is for an unstructured XML file (no DTD).<BR><BR>Thankfully, that is irrelevant if you are using key(). &nbsp;If you are <BR>using id() then it is relevant and you can use:<BR><BR> &nbsp; &nbsp;&lt;!DOCTYPE doc<BR> &nbsp; &nbsp;[<BR> &nbsp; &nbsp;&lt;!ATTLIST Heading1 id ID #IMPLIED&gt;<BR> &nbsp; &nbsp;&lt;!ATTLIST figure id ID #IMPLIED&gt;<BR> &nbsp; &nbsp;]&gt;<BR> &nbsp; &nbsp;&lt;doc&gt;<BR> &nbsp; &nbsp; &nbsp;....<BR><BR>There is no need to have a *complete* DTD to use the id() function; <BR>just the ATTLIST declarations are sufficient.<BR><BR>I hope this helps.<BR><BR>. . . . . . . . . . . . Ken<BR><BR><BR>--<BR>Upcoming public training: UBL and code lists Oct 1/5; Madrid Spain<BR>World-wide corporate, govt. &amp; user group XML, XSL and UBL training<BR>RSS feeds: &nbsp; &nbsp; publicly-available developer resources and training<BR>G. Ken Holman &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <A href="mailto:gkholman@CraneSoftwrights.com" target=blank >mailto:gkholman@CraneSoftwrights.com</a><BR>Crane Softwrights Ltd. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://www.CraneSoftwrights.com/f/" target=blank>http://www.CraneSoftwrights.com/f/</a><BR>Box 266, Kars, Ontario CANADA K0A-2E0 &nbsp; &nbsp;+1(613)489-0999 (F:-0995)<BR>Male Cancer Awareness Jul'07 &nbsp;<a href="http://www.CraneSoftwrights.com/f/bc" target=blank>http://www.CraneSoftwrights.com/f/bc</a><BR>Legal business disclaimers: &nbsp;<a href="http://www.CraneSoftwrights.com/legal" target=blank>http://www.CraneSoftwrights.com/legal</a><BR><BR>-------------------<BR>(*) To unsubscribe, send a message with words 'unsubscribe xep-support'<BR>in the body of the message to majordomo@renderx.com from the address<BR>you are subscribed from.<BR>(*) By using the Service, you expressly agree to these Terms of Service <a href="http://www.renderx.com/terms-of-service.html" target=blank>http://www.renderx.com/terms-of-service.html</a><BR></font></FONT>-------------------
(*) 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