This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: matching elements only once



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]