Re: counting elements

Subject: Re: counting elements
From: "Steve Muench" <SMUENCH@xxxxxxxxxxxxx>
Date: 30 Jun 1999 13:20:59 -0700
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
--- 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.


 XSL-List info and archive:

--- End Message ---
Current Thread