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

RE: Incrementing a Variable

Subject: RE: Incrementing a Variable
From: "Jon Wynacht" <jwynacht@xxxxxxxxx>
Date: Fri, 11 May 2001 07:18:26 -0700
incrementing through variables
Bottom line here is that I was trying to do was near impossible and really
should have been done back in the Java code. The xml that was coming to my
xsl was causing me to write so much logic in that we decided to kick the
problem back to the code level and fix it there.

Thanks everybody for your help here!

Jon

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Michael Kay
Sent: Friday, May 11, 2001 2:06 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  Incrementing a Variable


> I loop through the <AvailableField> elements and for each one
> I do some
> nifty HTML and I give that particular element I'm working on
> a number using
> position() - 1 so the number always starts with 0. Each time
> I'm inside the
> <AvailableField> element, I need to step out and check the
> <complexQueryField> elements, compare their id with the Id in
> <AvailableField> and if they match, do some nifty HTML and
> increment my
> counter.

Why do you need to increment your counter? The value of position() is
incremented automatically.

Mike Kay


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



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


Current Thread

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-2013 All Rights Reserved.