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

AW: tag/element count

Subject: AW: tag/element count
From: "Michael Schafer" <MSchaefer@xxxxxxxxxxxx>
Date: Thu, 12 Jul 2001 13:13:08 +0200
element count
Hello,

use
	<xsl:value-of select="count(//TEMP)"/>
if you want to count ALL <TEMP>-Elements in all subtrees

use
	<xsl:value-of select="count(TEMP)"/>
if you want to count the <TEMP>-Elements in current subtree

use
	<xsl:value-of select="count(/ROOT/TEMP)"/>
if you want to count only those <TEMP>-Elements which are children of
<ROOT>-Element.

Michael.


-----Ursprungliche Nachricht-----
Von: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]Im Auftrag von Devan
Govender
Gesendet: Donnerstag, 12. Juli 2001 12:45
An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Betreff:  tag/element count


I would like to know how many times tag/element exists in my xml
document

eg.

<TEMP>
  test
</TEMP>
<TEMP>
  test1
</TEMP>

this would be a count of 2....


-- 
"I count religion but a childish toy, and hold there is no sin but 
ignorance." -Christopher Marlowe, 1592

"HEAVEN does'nt want me & HELL is afraid I'll take over"

DEVAN GOVENDER

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.