Yes, please file a bug report on that item.
Bob Stayton
Sagehill Enterprises
[email protected]
----- Original Message -----
From: "Dave Pawson" <[email protected]>
To: <[email protected]>
Cc: "Bob Stayton" <[email protected]>
Sent: Thursday, February 10, 2011 2:59 AM
Subject: Re: [docbook-apps] Which link?
Bob, is this worth an rfe? Let people link back to a footnote reference?
On Thu, 10 Feb 2011 10:30:19 +0000
Dave Pawson <[email protected]> wrote:
db5, xsl-fo output. Renderx xep formatter
I want an internal link to an element with an id, but no content.
target is
<footnote xml:id='x'><para> .....
Resolved.
Custimized footnotes.xsl
Just added the id to the fo:inline,
since fo:footnote is an invalid (?????) target for a link, which is odd.
<xsl:template match="d:footnote">
<xsl:choose>
<xsl:when test="ancestor::d:table or ancestor::d:informaltable">
<xsl:call-template name="format.footnote.mark">
<xsl:with-param name="mark">
<xsl:apply-templates select="." mode="footnote.number"/>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<fo:footnote >
<fo:inline id="{@xml:id}">
<xsl:call-template name="format.footnote.mark">
<xsl:with-param name="mark">
<xsl:apply-templates select="." mode="footnote.number"/>
</xsl:with-param>
</xsl:call-template>
</fo:inline>
<fo:footnote-body xsl:use-attribute-sets="footnote.properties">
<xsl:apply-templates/>
</fo:footnote-body>
</fo:footnote>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
Built collated source has
<db:link xlink:href="#{@xml:id}">[<xsl:value-of
select="$fnnumber"/>]</db:link>
Sorry to waste bandwidth.
Takes two ends to make a link.
--
regards
--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]