Sharon_Harris(_at_)ultimatesoftware(_dot_)com wrote:
xsl:number does not output the numbering correctly. I have tried various
ways of using xsl:number and though I can get a letter to output instead of
a number, the sequence is wrong.
Your original post had
<xsl:template match="//SelfStudy" mode="toc">
<fo:block xsl:use-attribute-sets="TOC1">
<xsl:text>Self Study </xsl:text>
<xsl:value-of select="
count(preceding::SelfStudy)+1"/>
so assuming you want to format that count value then I think you simply need
<xsl:template match="//SelfStudy" mode="toc">
<fo:block xsl:use-attribute-sets="TOC1">
<xsl:text>Self Study </xsl:text>
<xsl:format-number value="
count(preceding::SelfStudy)+1" format="A"/>
There might be more elegant solutions using the other attributes of
format-number but I have not looked at details of the structure of your XML.
--
Martin Honnen
http://JavaScript.FAQTs.com/
--~------------------------------------------------------------------
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>
--~--