Subject: Re: [xsl] How to do this without updating a variable? From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 07 Sep 2005 19:00:46 -0400 |
Here's one way:...
<td><xsl:value-of select="."/></td><td><xsl:value-of select="sum(preceding::reg/@count) + 1"/></td><td><xsl:value-of select="sum(preceding::reg/@count) + @count"/></td>
So basically output of any node <reg> is based on all the <reg> nodes that have been processed before it.
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to do this without up, JBryant | Thread | Re: [xsl] How to do this without up, Agnisys Technology \ |
Re: [xsl] How to do this without up, Jay Bryant | Date | RE: [xsl] Apply-templates - how to , Mike Schinkel |
Month |