Subject: Re: [xsl] How to find out number of elements which does not have a particular attribute From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 07 Jul 2004 11:50:26 -0400 |
how to find out [the] number of elments which [do] not have a particular attribute?
count() counts a set of nodes
connectivity//* expands to child::connectivity/descendant-or-self::node()/* namely any element descendant of the 'connectivity' children
[@*] "which has an attribute"
[not(local-name() = 'sharedsource')] "whose local name is not 'sharedsource'"
Cheers, Wendell
> <xsl:variable name="sharedcount1" > select="count(connectivity//*[@*[not(local-name() = > 'sharedsource')]])"/>
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to find out number of, M. David Peterson | Thread | Can't output CDATA section, Robert Soesemann |
using preceding-sibling to calculat, Jaime Stuardo | Date | Re: [xsl] using preceding-sibling t, Wendell Piez |
Month |