RE: [xsl] Logical in Count function

Subject: RE: [xsl] Logical in Count function
From: "Vasu Chakkera" <vasucv@xxxxxxxxxxx>
Date: Wed, 18 Aug 2004 16:48:17 +0000
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: [xsl] 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