Next in thread → Next in month →

Re: [docbook-apps] Para with ID and references with pagenumber

From
"Cob Rtayton"
Date
2005-02-20T19:14:44+00:00
ID
003b01c51780$68cb16c0$6b00a8c0@toshiro
Thread
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


----- Original Message ----- 
From: "Steffen Glückselig" <>
To: <>
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
>
>
>
>
>
Next in thread → Next in month →