[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Increments

Subject: Increments
From: "Wyant, Graeme" <Graeme.Wyant@xxxxxxxxxxxxxxxxxx>
Date: Thu, 20 Sep 2001 11:05:24 -0500
increments
Okay. I have checked out all of the FAQ in regards to this question and I
cannot seem to find the best way to do this. I looked at using the
call-template method for counters and I am unsure whether it will work. I'll
let you decide!

I have the following XML:

<NODE NAME="whatever" ARCHIVENAME="BA">
<NODE NAME="whatever" ARCHIVENAME="BA">
<NODE NAME="whatever" ARCHIVENAME="BA">
<NODE NAME="whatever" ARCHIVENAME="XT">
<NODE NAME="whatever" ARCHIVENAME="XT">
<NODE NAME="whatever" ARCHIVENAME="XT">
<NODE NAME="whatever" ARCHIVENAME="CD">
<NODE NAME="whatever" ARCHIVENAME="CD">
<NODE NAME="whatever" ARCHIVENAME="EE">
<NODE NAME="whatever" ARCHIVENAME="EE">
<NODE NAME="whatever" ARCHIVENAME="EE">

When I iterate through this list using a for-each, each group has is it's
own column in a table. Once I hit the 3rd group (i.e. group1=BA group2=XT
!!group3=CD!! group4=EE) I need to create a new row so that group4 (EE)
would display on the next row. In other words I need a counter that will
keep a count of each ArchiveName group (in this case there are 4 groups).

How would I do this?



Graeme Wyant
Programmer/Analyst - Web Development
Investors Group
Tel:  (204)956-8499
e-mail: mailto:graeme.wyant@xxxxxxxxxxxxxxxxxx

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


Current Thread
  • Increments
    • Wyant, Graeme - Thu, 20 Sep 2001 12:10:30 -0400 (EDT) <=

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.