[2.7.8] Count property

[2.7.8] Count property 

Instead of:

<xsl:template match='chapter/title'>
    <fo:block quadding='center' font-size='25pt'>
        <xsl:text>Chapter </xsl:text>
        <xsl:number count="chapter"/>
        <xsl:text>: </xsl:text>
        <xsl:process-children/>
    </fo:block>
</xsl:template>

Could the count property be changed to accept a RelativeAnchor?:

<xsl:template match='chapter/title'>
    <fo:block quadding='center' font-size='25pt'>
        <xsl:text>Chapter </xsl:text>
        <xsl:number count=".."/><!-- count the relative location of parent -->
        <xsl:text>: </xsl:text>
        <xsl:process-children/>
    </fo:block>
</xsl:template>

............... Ken


--
G. Ken Holman               mailto:gkholman@CanadaMail.com
Crane Softwrights Ltd.  http://www.CraneSoftwrights.com/s/
Box 266,                                V: +1(613)489-0999
Kars, Ontario CANADA K0A-2E0            F: +1(613)489-0995
Training:   http://www.CraneSoftwrights.com/s/schedule.htm
Resources: http://www.CraneSoftwrights.com/s/resources.htm
Shareware: http://www.CraneSoftwrights.com/s/shareware.htm

Received on Saturday, 12 September 1998 08:51:08 UTC