Subject: Re: matching elements only once
From: Michael Hoffmann <m-hoffmann@xxxxxx>
Date: Mon, 23 Oct 2000 15:57:26 +0200
|
mxmodi@xxxxxxxxxxxxxxx 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
|