xsl-list
[Top] [All Lists]

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

2008-08-19 10:48:18
At 2008-08-19 10:37 -0400, Sharon_Harris(_at_)ultimatesoftware(_dot_)com 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(_at_)CraneSoftwrights(_dot_)com
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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--