Hi,
I've read a few articles on Muenchian methods which dont seem to help me - but am still no closer to solving my problem (which I'm sure is solvable!)
I have a block of XML which I am processing with an XSL stylesheet to porduce HTML... My problems (aside from the compelte lack of decent tooling out there
) come when I want do some totalling.
My XML data contains timesheet data for a list of employees and I want to be able to display how many days the employee has worked. Problem is they may have several timesheet records for each day - so I need to do some groovy grouping before I do my count...
heres a sample bit of XML:
I'm doing the following in my xsl - but the count is NOT distinct (i.e. on the above data it counts 2 days when clearly both days are are the same!)..
<xsl:for-each select="Employee">
...
<xsl:value-of select="count(PayTypes/PayType/Days/Day[not(DayName = preceding-sibling:
ay/DayName)]) "/>
...
</xsl:if>
Can anyone point me in the right direction?
-----------------------------------------------------------------------
Edit Comment: Disabled smiles.
[ October 18, 2004: Message edited by: Madhav Lakkapragada ]