XML Help

M

Mooney

I am trying to get an XML report to list specific tasks.
I just want a handful of task to be pulled out of the
project to a xml report. Can you pull a task out by ID #?
Here is what I have but sadly I am not familiar with the
proper code.


<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<HTML>
<BODY BGCOLOR="white">
<TABLE width="100%" BORDER="0" CELLSPACING="1">
<TR>
<TD COLSPAN="5" ALIGN="center">
<H2><font face="tahoma" size="5">Job Status Report:
<xsl:value-of select="Project/Name" /> </font></H2>
</TD>
</TR>
<TR BGCOLOR="black">
<TH><font color="white">ID</font></TH>
<TH><font color="white">Name</font></TH>
<TH><font color="white">Estimate</font></TH>
<TH><font color="white">Actual</font></TH>
<TH><font color="white">Plus/Minus</font></TH>
</TR>
Anyone know what code is used to pull out a task by id
#?
<xsl:for-each select="Project/Tasks/Task">
<xsl:if test="Critical[.=1]">
<xsl:if test="Summary[.=0]">


<TR>
<TD><xsl:value-of select="Name"/></TD>
<TD><xsl:value-of select="Name"/></TD>
<TD><xsl:value-of
select="BaselineWork"/></TD>
<TD><xsl:value-of
select="ActualWork"/></TD>
<TD><xsl:value-of select="Variancework"/></TD>

</TR>
</xsl:if>
</xsl:if>
</xsl:for-each>
</TABLE>
</BODY>
</HTML>
</xsl:template>
</xsl:stylesheet>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top