This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Para with ID and references with pagenumber
- From: "Bob Stayton" <bobs at sagehill dot net>
- To: <docbook-apps at lists dot oasis-open dot org>, Steffen Glückselig <glueckselig at gungfu dot de>
- Date: Sun, 20 Feb 2005 11:14:32 -0800
- Subject: Re: [docbook-apps] Para with ID and references with pagenumber
- References: <opsmh8n21gx13dgy@localhost>
Actually, this is pretty odd. There are quite a few element templates in
fo/block.xsl that don't call the template named "anchor" that outputs the id
into the XSL-FO. So there is nothing for the FO processor to connect with.
I think this is just an oversight. Can you file a bug report about this on
SourceForge?
In the meantime, you could use this:
<xsl:template match="formalpara">
<fo:block xsl:use-attribute-sets="normal.para.spacing">
<xsl:call-template name="anchor"/>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net
----- Original Message -----
From: "Steffen Glückselig" <glueckselig@gungfu.de>
To: <docbook-apps@lists.oasis-open.org>
Sent: Sunday, February 20, 2005 8:41 AM
Subject: [docbook-apps] Para with ID and references with pagenumber
> Hello,
>
> I'd like to reference a paragraph including the number of the page it
appears in.
>
> Somewhere in my document I have a
> <formalpara id="someid"><title>sometitle</title>some text...</formalpara>
>
> which gets referenced thus: <xref linkend="someid" role="select:
quotedtitle pageabbrev"/>
>
> In the pdf-output this will result in
> "sometitle" (p. ?)
>
> I couldn't get the pagenumber in there. How could I achieve this?
>
>
> thanks
> best regards
> Steffen Glückselig
>
>
>
>
>