473,394 Members | 1,170 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Trying to Group Data

I am trying to group data. I have a daily record that contains multiple projects and
multiple items in the project. I would like to roll the daily data into project 1 and all
the items that go with it and then project 2 and all the items that go with it. I have
a start but am unsure of where to go. I am attaching the files that I have.

Any help would be appreciated.

Thanks,
Dave

====================

<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="StatusReportProject.xsl" ?>

<TimeSheet>
<DailyTime Date="05/01/2005">
<WorkHours>
<Time Period="Day" Start="8:00 am" End="5:00 pm" />
<Time Period="Lunch" Start="12:00 pm" End="1:00 pm" />
<Time Period="AfterHours" Start="9:00 pm" End="11:00 pm" />
</WorkHours>
<Project Name="Project 1">
<Task Name="Task 1.1">
<WorkItemList Item="Task 1.1 - Item 1" />
<WorkItemList Item="Task 1.1 - Item 2" />
</Task>
<Task Name="Task 1.2">
<WorkItemList Item="Task 1.2 - Item 1" />
<WorkItemList Item="Task 1.2 - Item 2" />
</Task>
</Project>
<Project Name="Project 2">
<Task Name="Task 2.1">
<WorkItemList Item="Task 2.1 - Item 1" />
<WorkItemList Item="Task 2.1 - Item 2" />
</Task>
<Task Name="Task 2.2">
<WorkItemList Item="Task 2.2 - Item 1" />
<WorkItemList Item="Task 2.2 - Item 2" />
</Task>
</Project>
</DailyTime>

<DailyTime Date="05/02/2005">
<WorkHours>
<Time Period="Day" Start="7:00 am" End="4:00 pm" />
<Time Period="Lunch" Start="11:00 pm" End="12:00 pm" />
<Time Period="AfterHours" Start="9:00 pm" End="11:00 pm" />
</WorkHours>
<Project Name="Project 3">
<Task Name="Task 3.1">
<WorkItemList Item="Task 3.1 - Item 1" />
<WorkItemList Item="Task 3.1 - Item 2" />
</Task>
<Task Name="Task 3.2">
<WorkItemList Item="Task 3.2 - Item 1" />
<WorkItemList Item="Task 3.2 - Item 2" />
</Task>
</Project>
<Project Name="Project 1">
<Task Name="Task 1.1">
<WorkItemList Item="Task 1.1 - Item 1" />
<WorkItemList Item="Task 1.1 - Item 2" />
</Task>
<Task Name="Task 1.3">
<WorkItemList Item="Task 1.3 - Item 1" />
<WorkItemList Item="Task 1.3 - Item 2" />
</Task>
</Project>
</DailyTime>
</TimeSheet>

================================================== =

<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/TimeSheet">
<HTML>
<HEAD>
<TITLE>Project Status Report</TITLE>
</HEAD>
<BODY>
<xsl:for-each select="DailyTime/Project">
<xsl:value-of select="@Name"/><br></br>
<xsl:call-template name="callTask"/>
<hr></hr>
</xsl:for-each>
</BODY>
</HTML>
</xsl:template>

<xsl:template name="callTask">
<xsl:for-each select="Task">
<OL>
<xsl:value-of select="@Name"/>
<xsl:call-template name="callWorkItemList"/>
</OL>
</xsl:for-each>
</xsl:template>

<xsl:template name="callWorkItemList">
<xsl:for-each select="WorkItemList">
<OL>
<xsl:value-of select="@Item"/>
</OL>
</xsl:for-each>
</xsl:template>

</xsl:stylesheet>

========================================
Nov 12 '05 #1
0 1196

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Denis St-Michel | last post by:
Hello All, Hope some Guru will be able to help me with this. Let's take this example table A ------------------------------------------------------------------------------- id | ...
3
by: Ian | last post by:
The beginning of my assembly that I am getting the access error from looks like this. ********************************* Imports System.EnterpriseServices Imports System Imports...
0
by: Scotter | last post by:
Hi - I posted this message in the microsoft.public.inetserver.iis group, as well. I hope someone can help. My client is frantic. Platform: Windows 2003 Server Enterprise Edition, latest MDAC...
1
by: intl04 | last post by:
I am getting strange print-related error messages when trying to create (not print!) reports. For example, when I click 'new' to create a report then choose 'design view', I get an error message...
1
by: Access | last post by:
Here is my function to change a users permission level in the database. This relates to an Access database secured using Access security. This function is called if the end user changes a staff...
1
by: David Horowitz | last post by:
Hi folks. I need to create a report that has a Group Header that pulls certain data from the Detail section. It's something like this: +--Report---------------------------------------- |...
5
by: snicks | last post by:
I'm trying to exec a program external to my ASP.NET app using the following code. The external app is a VB.NET application. Dim sPPTOut As String sPPTOut = MDEPDirStr + sID + ".ppt" Dim p As...
6
by: syvman | last post by:
Hi all... I have a quick question, if anyone knows the answer. I've built a query which looks at a set of records in a table (tblFilename) and I've set it up so that it displays the following...
0
by: rbukkara | last post by:
Hi, I have got the following error while trying to add a user in the LDAP Directory. javax.naming.NameNotFoundException: ; remaining name 'uid=vassila,ou=People,dc=cs,dc=uno,dc=edu' I have...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.