RE: [xsl] enumerating things (global counter)

Subject: RE: [xsl] enumerating things (global counter)
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Wed, 17 Apr 2002 17:52:52 +0100
> 
> It takes into account all "preceding" requirements, but "preceding" in
> XPath terms doesn't include ancestors, and you want to include
> ancestors in your numbering. So use:
> 
>   <xsl:value-of
>     select="count(preceding::requirement | 
> ancestor::requirement) + 1" />
> 
Or use <xsl:number level="any"/> which does much the same thing.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread