Re: [2.7.8] : Numbering in the Source Tree

Subject: Re: [2.7.8] : Numbering in the Source Tree
From: James Clark <jjc@xxxxxxxxxx>
Date: Thu, 10 Sep 1998 16:13:54 +0700
G. Ken Holman wrote:

> (2) Later in the examples in 2.7.8, would the given snippet:
> 
> <xsl:template match="H4">
> <fo:block>
>    <xsl:number level="any" from="H1" count="H2"/>
>    <xsl:text>.</xsl:text>
>    <xsl:number level="any" from="H2" count="H3"/>
>    <xsl:text>.</xsl:text>
>    <xsl:number level="any" from="H3" count="H4"/>
>    <xsl:text> </xsl:text>
>    <xsl:process-children/>
> </fo:block>
> </xsl:template>
> 
> be equivalent to:
> 
> <xsl:template match="H4">
>   <fo:block>
>      <xsl:number level="multi"
>                  count="H1|H2|H3"
>                  format="1.1.1. "/>
>      <xsl:process-children/>
>   </fo:block>
> </xsl:template>
> 
> ?

No. In HTML H[1-9] are like titles not divs: an H2 isn't contained in an
H1.

James



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread