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

RE: Plse Help! something to do with counter....

Subject: RE: Plse Help! something to do with counter....
From: "Chris Bayes" <Chris@xxxxxxxxxxx>
Date: Mon, 30 Apr 2001 08:44:01 +0100
how to do a counter
Justin,
You can't increment counters in xslt.
Depending on the structure of your xml you might be able to do something
like
<input type="checkbox" name="XXX" value="c{count(checkbox}" />

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


>-----Original Message-----
>From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Poh Justin KT
>Sent: 30 April 2001 05:00
>To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>Subject:  Plse Help! something to do with counter....
>
>
>Hi, I'm trying to create a form with checkboxes using XSLT, with each
>checkbox a different name, like "c1", "c2" util the last.  a checkbox will
>be assign to each item in the XML.
>
>Is there a way to make a auto-increment counter and use it in the
>following
>tag?
><input type="checkbox" name="XXX" value="{Index}">
>
>its java counterpart may look something like this..
>(within a for loop)
>"<input type=\"checkbox\" name=\"c" + i +"....."
>where i will increment.
>
>Sorry for my poor elaboration...
>
>Thanks!
>_________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
> 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.