Hi,
There is no paragraph numbering feature built into the XSL stylesheets, but it could be done using a customization layer with a customization of the template handling the para element. That template is in fo/block.xsl and looks like this:

<xsl:template match="para">
 <fo:block xsl:use-attribute-sets="normal.para.spacing">
   <xsl:call-template name="anchor"/>
   <xsl:apply-templates/>
 </fo:block>
</xsl:template>

You could add some code to generate a number and call it before the xsl:apply-templates. I'd suggest some code, but I don't understand your numbering scheme.

Bob Stayton
Sagehill Enterprises
[EMAIL PROTECTED]


----- Original Message ----- From: "Lars Strand" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, October 19, 2008 1:13 AM
Subject: [docbook] Help with paragraph numbering


I'm currently underway to translate a huge document. This document uses paragraph-numbering. The numbering is on form "0:0.2" "0:0.3" etc.

I've looked over the Docbook documentation, and searched the net - but the closes thing I find is line-numbering.

Does Docbook support paragraph numbering? I've tried with

<para id="0:0:2">

But then xmllint complains. So now I just manually type in the paragraph number for each paragraph like this:

<para>
0:0.2 Here is the text....
</para>

Can this be solved in any other way? Any advise/hint would be greatly appreciated!

Thanks.

Regards,

Lars

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to