This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: matching elements only once
- To: xsl-list at mulberrytech dot com
- Subject: Re: matching elements only once
- From: Michael Hoffmann <m-hoffmann at ti dot com>
- Date: Mon, 23 Oct 2000 15:57:26 +0200
- Organization: Texas Instruments
- References: <OF8C5440FA.49392709-ON86256981.00465D0F@dukepower.com>
- Reply-To: xsl-list at mulberrytech dot com
mxmodi@duke-energy.com wrote:
> XSL file:
>
> <xsl:variable name="weektotal">
> <xsl:value-of select="count(descendant::TimeSheet[not(child::*)])"/>
> </xsl:variable>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
i would use
<xsl:value-of select="count(Employees/Employee/TimeSheets/TimeSheet)"/>
(but i am new to xml so dont trust me :-) .. i am sure there are better
ways,
but for me it worked...)
mike
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list