[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Para with ID and references with pagenumber
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
>
>
>
>
>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]