p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

xslt thread: Grouping and Numbering


Message #1 by "William Carlo Roncallo" <roncalw@y...> on Tue, 3 Jul 2001 14:34:11
This service is great!!!! It worked like a charm!!

> > I am trying to make Michael Kay's excellent example for 
> > grouping work for 
> > me, where I am trying to get the following output:
> > 
> > 
> > My question is how do I get the number that is in fron of the country 
> > inserted before each city, I want it work for sorting, so i 
> > can not add 
> > any attributes to the actual xml file.
> 
> Just save it in a variable. Instead of
> 
> <xsl:number value="position()" format="001"/>
> 
> write
> 
> <xsl:variable name="cno">
> <xsl:number value="position()" format="001"/>
> </xsl:variable>
> <xsl:value-of select="$cno"/>
> 
> and then you have $cno available for use later.
> 
> Mike Kay
> Software AG

  Return to Index