OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: run-in section titles - activating automatic numbering


Hi Michael,
You can generate the section number by applying templates to the sect3 element in mode="label.markup".  It just generates the number, so you would need to add any trailing punctuation or space.
 
Bob Stayton
Sagehill Enterprises
bobs@sagehill.net
 
 
----- Original Message -----
Sent: Wednesday, May 16, 2012 12:41 AM
Subject: run-in section titles - activating automatic numbering


Could I ask what I need to do to activate section automatic numbering for run-in section titles.  I'm using the sample code from the XSL book:

<xsl:template name="sect3.titlepage">
       
<fo:block xsl:use-attribute-sets="normal.para.spacing">
           
<xsl:apply-templates select="d:title" mode="inline.title"/> 
           
<xsl:if test="d:para[preceding-sibling::*[1][self::d:title]]"> 
               
<xsl:text></xsl:text> 
               
<xsl:apply-templates select="d:para[preceding-sibling::*[1][self::d:title]]" 
                    mode="inline.para"/> 
           
</xsl:if>
       
</fo:block> 
   
</xsl:template>
   
   
<xsl:template match="d:sect3/d:title" mode="inline.title"> 
       
<fo:inline xsl:use-attribute-sets="inline.sect3.title.properties">
           
<xsl:apply-templates/>
       
</fo:inline>
    </xsl:template>
   
    <xsl:attribute-set name="inline.sect3.title.properties">
       
<xsl:attribute name="font-weight">bold</xsl:attribute>
   
</xsl:attribute-set>
   
   
<xsl:template match="d:sect3/d:para[preceding-sibling::*[1][self::d:title]]" 
        mode="inline.para">
       
<xsl:apply-templates/>
       
   
</xsl:template>
   
   
<xsl:template match="d:sect3/para[preceding-sibling::*[1][self::d:title]]">
   
</xsl:template>  

Thanks.

Michael


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]