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: [docbook-apps] Chapter boiler plate text, xslt stylesheets.

At 14:26 07/10/2003 -0400, Jeff Beal wrote:
>Numbering happens in the 'label.markup' mode and the templates that control
>that are contained in common/labels.xsl.  The template matching 'section'
>can be modified as follows:
>(at end of template)
>   <xsl:choose>
>     <xsl:when test="@label">
>       <xsl:value-of select="@label"/>
>     </xsl:when>
>     <xsl:when test="$label != 0">
>       <!-- add appropriate 'from' attribute to number this from the book -->
>       <xsl:number count="section" from="book"/>
>     </xsl:when>
>   </xsl:choose>

?? Feature request.
    'nother param

<xsl:param name="sect1.from.number" select="'book'"/>
(or something better)
Is it worthwhile ?

end goal is

<xsl:number count="section" >
<xsl:if test="$sect1.from.number">
   <xsl:attribute name="from">
         <xsl:value-of select="$sect1.from.number"/>

regards DaveP 

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