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

RE: modifiable variables

Subject: RE: modifiable variables
From: "Nicolas DELAHAYE" <ndelahaye@xxxxxxxxxxxxxx>
Date: Mon, 29 Nov 1999 08:22:05 +0100
nicolas delahaye
Juste an example :

<xsl:value-of select="count(Whatever[Choice=true])"/>

Best regards

Nicolas DELAHAYE

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Bill Abbas
> Sent: Friday, November 26, 1999 6:49 PM
> To: xsl-list@xxxxxxxxxxxxxxxx
> Subject: RE: modifiable variables
>
>
>
> I've got some XML that looks roughly like this:
>
> <Whatever>
> 	<Choice>
> 		true
> 	</Choice>
> 	<Choice>
> 		false
> 	</Choice>
> 	<Choice>
> 		true
> 	</Choice>
> 	<Choice>
> 		false
> 	</Choice>
>
> 	... you get the idea ... :-)
>
> </Whatever>
>
> What I want to count is the number of "Choice" nodes whose text is "true".
>
> -Bill
>
> -----Original Message-----
> From: Nicolas DELAHAYE [mailto:ndelahaye@xxxxxxxxxxxxxx]
> Sent: Thursday, November 25, 1999 12:00 AM
> To: xsl-list@xxxxxxxxxxxxxxxx
> Subject: RE: modifiable variables
>
>
> what do you want count ?
> if it is node-set, then you can use the count function (XPath).
>
>
> Nicolas DELAHAYE
>
> ----
> The Gartner Group predicts that, by the year 2001,
> between 50 and 80% of all electronic purchases
> will be done through affiliate networks.
> Think about it & visit : http://www.imediation.com
>
> > -----Original Message-----
> > From: owner-xsl-list@xxxxxxxxxxxxxxxx
> > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Bill Abbas
> > Sent: Wednesday, November 24, 1999 9:41 PM
> > To: xsl-list@xxxxxxxxxxxxxxxx
> > Subject: modifiable variables
> >
> >
> >
> > My somewhat tentative understanding is that an xsl:variable is basically
> > read-only.
> >
> > Does anyone have any advice on how to implement a counter in
> XSL?  Is this
> > something I can do with xsl:param?
> >
> > -Bill
> >
> >
> >  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> >
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>
>  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.