<FONT face="Default Sans Serif, Verdana, Arial, Helvetica, sans-serif" size=2><DIV>Ken's observation put me on the path of the righteous. The following creates the targets for cross-references:</DIV><DIV> </DIV><DIV> <xsl:template match="figure"><BR> <fo:block><BR> <xsl:attribute name="id"><BR> <xsl:value-of select="generate-id()"/><BR> </xsl:attribute><BR> (other stuff...) </DIV><DIV></fo:block></DIV><DIV></xsl:template> <BR></DIV><DIV> </DIV><DIV> </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" <gkholman@CraneSoftwrights.com><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>>I'm creating cross references to a heading and a figure. The xrefs <BR>>to the headings work, but not to the figures.<BR>><BR>>In the XML file I have<BR>><BR>><body>See the section <heading_link target="second_heading" />.</body><BR>><body>See the figure <figure_link target="browser_settings" />.</body><BR>>...<BR>><Heading1 id="second_heading">Installation</Heading1><BR>><figure src="browser_settings.tif" id="browser_settings"/><BR>><BR>>In the XSL file I have<BR>><BR>> <xsl:template match="heading_link"><BR>>...<BR>> <xsl:template match="figure_link"><BR>>...<BR>>Result:<BR>>See the section on page 3.<BR>>See the figure on page ?.<BR>>...<BR>>3) The engine gives the following mesasge: unresolved internal <BR>>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>>This is for an unstructured XML file (no DTD).<BR><BR>Thankfully, that is irrelevant if you are using key(). If you are <BR>using id() then it is relevant and you can use:<BR><BR> <!DOCTYPE doc<BR> [<BR> <!ATTLIST Heading1 id ID #IMPLIED><BR> <!ATTLIST figure id ID #IMPLIED><BR> ]><BR> <doc><BR> ....<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. & user group XML, XSL and UBL training<BR>RSS feeds: publicly-available developer resources and training<BR>G. Ken Holman <A href="mailto:gkholman@CraneSoftwrights.com" target=blank >mailto:gkholman@CraneSoftwrights.com</a><BR>Crane Softwrights Ltd. <a href="http://www.CraneSoftwrights.com/f/" target=blank>http://www.CraneSoftwrights.com/f/</a><BR>Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)<BR>Male Cancer Awareness Jul'07 <a href="http://www.CraneSoftwrights.com/f/bc" target=blank>http://www.CraneSoftwrights.com/f/bc</a><BR>Legal business disclaimers: <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