[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] para numbering
Sean, Her is one attempt, I have been using. Both methods depends on the global parameter <xsl:<xsl:param name="use.para.numbering" select="1"/> For HTML/XHTML use: <xsl:template match="chapter/para |appendix/para |sect1/para |sect2/para |sect3/para |sect4/para |sect5/para"> <p> <xsl:if test="$use.para.numbering != 0"> <xsl:text></xsl:text> <xsl:number from="book" count="para[parent::chapter or parent::appendix or parent::sect1 or parent::sect2 or parent::sect3 or parent::sect4 or parent::sect5 ]" format="1" level="any"/> <xsl:text>. </xsl:text> </xsl:if> <xsl:call-template name="anchor"/> <xsl:apply-templates/> </p> </xsl:template> For FO use: <xsl:template match="chapter/para |appendix/para |sect1/para |sect2/para |sect3/para |sect4/para |sect5/para"> <fo:block xsl:use-attribute-sets="normal.para.spacing"> <xsl:if test="$use.para.numbering != 0"> <xsl:number from="book" count="para[parent::chapter or parent::appendix or parent::sect1 or parent::sect2 or parent::sect3 or parent::sect4 or parent::sect5]" format="111" level="any"/> <xsl:text>. </xsl:text> </xsl:if> <xsl:apply-templates/> </fo:block> </xsl:template> Regards, Jens On Tue, 2 Aug 2005, Sean Wheller wrote: > Is there a way to do numbering of paragraphs? The use case for which is legal > documents. > -- > Sean Wheller > sean@enbaya.co.za > http://www.enbaya.co.za > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]