xsl-list
[Top] [All Lists]

RE: Logical in Count function

2004-08-18 09:48:17

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(_at_)yahoo(_dot_)com>
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
To: XSL List <XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com>
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

--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--


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



<Prev in Thread] Current Thread [Next in Thread>