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

RE: Logical in Count function

Subject: RE: Logical in Count function
From: "Vasu Chakkera" <vasucv@xxxxxxxxxxx>
Date: Wed, 18 Aug 2004 16:48:17 +0000
xsl logical and
Hi,
If you intend to count
those nodes that has a valid Person_x0020_Name value and that it is not equal to 'Vacancy'
Do the following


<xsl:value-of select = "count(/dsWMSRpt/WMSReport[string(Person_x0020_Name) and
not(Person_x0020_Name ='Vacancy')])"/>


If thaz what you meant...

HTH
Vasu

From: Tham Tinh <khautinh@xxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: XSL List <XSL-List@xxxxxxxxxxxxxxxxxxxxxx>
Subject:  Logical in Count function
Date: Wed, 18 Aug 2004 09:33:00 -0700 (PDT)

First I would like to thank for the first help.

I still have anohter question how to use logical and,
or in Count function.  I wrote
<p>Employee Count: <xsl:value-of
select="count(/dsWMSRpt/WMSReport[Person_x0020_Name!='Vacancy']
and /dsWMSRpt/WMSReport[Person_x0020_Name!=''])"/></p>

and I got an error.  Am I wrong to use logical and in
it?  Please correct for me.
Thanks

=====
"It is essential to know that to be a happy person, a happy family, a happy society, it is very crucial to have a good heart, that is very crucial,"
Dalai Lama




__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail


_________________________________________________________________
Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger


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.