B
Briony
Hi,
I am trying to build an XML report which shows the status of summary tasks
in my Project.
I have built a customer field using Number1 called PriorityTL, which has
values:
0 - None
1 - Red
2 - Amber
3 - Green
I have assigned these to graphical indicators and that is all working well
in my project.
What I want to do now is build an XML report which will show 4 tables (None,
Red, Amber, Green) and place the tasks inside depending on their PriorityTL.
1. How do I display only Summary Tasks?
<xsl:for-each select="Project/Tasks/Task">
<xsl:if test="Summary[.=1]">
This code will show ALL tasks including summary tasks, but I just want the
summary tasks, not the detail.
2. How do I display only the "Red" tasks?
<xsl:if test="PriorityTL"[.=0/1/2/3]"> doesnt seem to work
<xsl:if test="Number1"[.=0/1/2/3]"> doesnt seem to work either
I think I probably have both the name (PriorityTL or Number1) wrong and the
value (0/1/2/3 vs none, red, amber, green) wrong but I'm not sure.
Thanks for any help!
I am trying to build an XML report which shows the status of summary tasks
in my Project.
I have built a customer field using Number1 called PriorityTL, which has
values:
0 - None
1 - Red
2 - Amber
3 - Green
I have assigned these to graphical indicators and that is all working well
in my project.
What I want to do now is build an XML report which will show 4 tables (None,
Red, Amber, Green) and place the tasks inside depending on their PriorityTL.
1. How do I display only Summary Tasks?
<xsl:for-each select="Project/Tasks/Task">
<xsl:if test="Summary[.=1]">
This code will show ALL tasks including summary tasks, but I just want the
summary tasks, not the detail.
2. How do I display only the "Red" tasks?
<xsl:if test="PriorityTL"[.=0/1/2/3]"> doesnt seem to work
<xsl:if test="Number1"[.=0/1/2/3]"> doesnt seem to work either
I think I probably have both the name (PriorityTL or Number1) wrong and the
value (0/1/2/3 vs none, red, amber, green) wrong but I'm not sure.
Thanks for any help!