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

Re: How to find out number of elements which does not

Subject: Re: How to find out number of elements which does not have a particular attribute
From: "M. David Peterson" <m.david@xxxxxxxxxx>
Date: Wed, 07 Jul 2004 06:30:35 -0600
xsl number of elements
you need to either add a * to complete your shortcut for "descendant-or-self" reference....

<xsl:variable name="sharedcount1" select="count(connectivity//*[@*[not(local-name() = 'sharedsource')]])"/>

Good luck!

<M:D/>


Ranjan K. Baisak wrote:


Hello David,
            This looks only "bar" element under "foo"
but under foo there might be other elements too. I
need some generic xpath which can give me the count. I
am using <xsl:variable name="sharedcount1"
select="count(connectivity//[@*[not(local-name() =
'sharedsource')]])"/> but this did not work. Do I need
to modify something?

regards,
Ranjan
--- "M. David Peterson" <m.david@xxxxxxxxxx> wrote:

select="count(foo/bar[@*[not(local-name() =
'bar')]])"

Ranjan K. Baisak wrote:


Hello List,
          Can anybody suggest me how to find out
number of elments which does not have a particular
attribute?

regards,
Ranjan


__________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other

providers!


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@xxxxxxxxxxxxxxxxxxxxxx>


--+--



--+------------------------------------------------------------------

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@xxxxxxxxxxxxxxxxxxxxxx>
--+--







		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
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@xxxxxxxxxxxxxxxxxxxxxx>
--+--


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.