J
Jon Bosker
Help! This is probably easy but I just don't get it. I am trying to
relate and merge 2 datasets. My XML file has 2 datasets (1st level
nodes) TimeDetail and TimeSummary. The report is supposed to show the
TimeDetail rows then the TimeSummary row. Like this:
Task1 9:20 9:30 0:10 <-- from TimeDetail
Task2 9:30 10:00 0:30
TOTAL 0:40 <-- from TimeSummary
(The reason I am using 2 datasets is because I figured it was easier
doing the minutes to time conversion in .net but I could review that)
So the question is: How do I merge the 2 datasets? i.e. how do I
relate the data in TimeDetail to the data in TimeSummary? I have
things like
<xsl:for-each select = "/DS/TimeSummary">
<xsl:for-each select = "/DS/TimeDetail[Date=/DS/SummaryData/Date]">
... output the task, times etc
</xsl:for-each>
... output the TOTAL
</xsl:for-each>
So the filter [Date=/DS/SummaryData/Date] is not working as I want it
because it is not filtering... but I hope you can see the intention!
relate and merge 2 datasets. My XML file has 2 datasets (1st level
nodes) TimeDetail and TimeSummary. The report is supposed to show the
TimeDetail rows then the TimeSummary row. Like this:
Task1 9:20 9:30 0:10 <-- from TimeDetail
Task2 9:30 10:00 0:30
TOTAL 0:40 <-- from TimeSummary
(The reason I am using 2 datasets is because I figured it was easier
doing the minutes to time conversion in .net but I could review that)
So the question is: How do I merge the 2 datasets? i.e. how do I
relate the data in TimeDetail to the data in TimeSummary? I have
things like
<xsl:for-each select = "/DS/TimeSummary">
<xsl:for-each select = "/DS/TimeDetail[Date=/DS/SummaryData/Date]">
... output the task, times etc
</xsl:for-each>
... output the TOTAL
</xsl:for-each>
So the filter [Date=/DS/SummaryData/Date] is not working as I want it
because it is not filtering... but I hope you can see the intention!