[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook] Help with paragraph numbering
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 bobs@sagehill.net ----- Original Message ----- From: "Lars Strand" <lars.strand@gnist.org> To: <docbook@lists.oasis-open.org> 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: docbook-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-help@lists.oasis-open.org > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]