Re: [xsl] Display count function output as letter value instead of number value

Subject: Re: [xsl] Display count function output as letter value instead of number value
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 19 Aug 2008 11:47:50 -0400
At 2008-08-19 10:37 -0400, Sharon_Harris@xxxxxxxxxxxxxxxxxxxx wrote:
xsl:number does not output the numbering correctly.

It appears from your use of attributes that it is operating correctly.


      <xsl:template match="//SelfStudy" mode="toc">
      <fo:block xsl:use-attribute-sets="TOC1">
                        <xsl:text>Self Study&#160;</xsl:text>
                                    <xsl:number format="A"/>

That only counts the current node amongst like-named siblings.


However, I would like it to output as follows:
   SelfStudy A - Title
   SelfStudy B - Title
   SelfStudy C - Title

The following will count all SelfStudy elements to the beginning of the document:


<xsl:number format="A" level="any"/>

I hope this helps.

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

--
Upcoming XSLT/XSL-FO hands-on courses:      Wellington, NZ 2009-01
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

Current Thread