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

Re: counting elements

Subject: Re: counting elements
From: "Steve Muench" <SMUENCH@xxxxxxxxxxxxx>
Date: 30 Jun 1999 13:20:59 -0700
counting elements
If the current context is right, then you can simply do: 
 
<xsl:value-of select="count(person)"/> 
 
or you might have to augment the "person" pattern 
to fit your situation... 
 
_________________________________________________________ 
Steve Muench, Consulting Product Manager & XML Evangelist 
Business Components for Java Dev't Team 
http://www.oracle.com/xml
--- Begin Message ---
Subject: counting elements
From: Christopher Conway <chris_conway@xxxxxxxxxxxx>
Date: 30 Jun 1999 11:51:52
It seems like a basic question, but I can't find an answer
in the spec: how do I insert an element count into a document.
For instance, I have an xml file that lists people; I want to
be able to count how many <person></person> records are in
the file and output a total.

Thanks,
Chris
-- 
chris_conway@xxxxxxxxxxxx


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

--- End Message ---
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.