[xsl] Problem with xsl:number formatting

Subject: [xsl] Problem with xsl:number formatting
From: "Budinger [US], Bruce" <Bruce.Budinger@xxxxxxxxxxxxxx>
Date: Wed, 8 Aug 2007 17:36:23 -0400
I am trying to create a report from xml data that will appear in an
appendix. I want to start this report with the letter "E" and have it
propagate throughout the outline structure.

However, this doesn't seem to be working.  I'm not sure what I am
missing.

-- Desired output --
E CSU Category: Interface
E.1 CSU: Analog Input Interface
E.1.1 SWInterface:
E.2 CSU: Analog Output Interface
E.2.1 SWInterface:
E.3 CSU: Other Interface
E.3.1 SWInterface:
--Etc.--

--XML File--
<?xml version="1.0" encoding="iso-8859-1"?> <?xml-stylesheet
type="text/xsl" href="test.xsl"?> <root>
  <CSU_Category Name="Interface">
    <CSU Name="Analog Input Interface" >
      <Template Name="C_Module_Template">
      </Template>
    </CSU>
    <CSU Name="Analog Output Interface" >
      <Template Name="F_Module_Template" >
      </Template>
    </CSU>
    <CSU Name="Other Interface" >
      <Template Name="Other_Interface_Template" >
      </Template>
    </CSU>
  </CSU_Category>
</root>

-- XSL File --
<?xml version='1.0'?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

<xsl:template match="/">
<html>
<body>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>

<xsl:template match="CSU_Category">
	<xsl:number format="A" level="multiple" count="CSU_Category"
value="5"/> CSU Category: <xsl:value-of select="@Name"/>
	<br/>
	<xsl:apply-templates/>
</xsl:template>

<xsl:template match="CSU">
	<br/>
	<xsl:number level="multiple" format="A.1"
count="CSU_Category|CSU" /> CSU: <xsl:value-of select="@Name"/>
	<br/>
	<xsl:apply-templates/>
</xsl:template>

<xsl:template match="Template">
	<xsl:number level="multiple" format="A.1.1"
count="CSU_Category|CSU|Template"/> SWInterface: <xsl:value-of
select="SWInterface_Name"/>
	<br/>
	<xsl:apply-templates/>
</xsl:template>

</xsl:stylesheet>

--- Current output --
E CSU Category: Interface
A.1 CSU: Analog Input Interface
A.1.1 SWInterface:
A.2 CSU: Analog Output Interface
A.2.1 SWInterface:
A.3 CSU: Other Interface
A.3.1 SWInterface:

I have scoured the internet and have not been able to get any insight as
to why I get A.1.
Any help would be appreciated.
Bruce Budinger
Chief Architect - LHD-8
bruce.budinger@xxxxxxxxxxxxxx
Northrop Grumman Systems Corporation
Sperry Marine
1070 Seminole Trail
Charlottesville, VA 22901
Phone: 434.974.2634
Cell: 434.989-8634

Current Thread