I am working with an XML document that has DETAIL sections as such:

  <description>LONG SLEEVE HOOK TEE</description> 

The problem I am having with my XSLT file is that in the spec I am working with I separate out charges (anything where the STYLE begins with ZZ) from the non-ZZ items.

That doesn't pose a problem, as most of what I need I can do using the choose-when-otherwise construct.

The problem is that each type (ZZ versus non-ZZ) has to have its own sequential counter. I am stumped on how to do this and searching through documentation on the recursive template proves to be nothing more than "this does this."

Can someone help me?