home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.tcs3.com
/
ftp.tcs3.com.tar
/
ftp.tcs3.com
/
DRIVERS
/
Audio
/
Office2010
/
ProPlus.WW
/
ProPsWW.cab
/
DEFAULT.XSL
< prev
next >
Wrap
Extensible Markup Language
|
2007-02-04
|
3KB
|
110 lines
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<!-- MAIN -->
<xsl:template match="/">
<html>
<head>
<style type="text/css">
<![CDATA[
BODY, TABLE, TR, TD {
font-family: tahoma, arial, sans-serif;
font-size: 11px;
}
.PageHeader {
font-size: 15px;
font-weight: bold;
}
.ColumnHeader {
background-color: navy;
color: white;
font-weight: bold;
font-size: 13px;
}
]]>
</style>
</head>
<body>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<!-- ACTIVITY REPORT -->
<xsl:template match="ProjectToolReport">
<table cellpadding="2" cellspacing="2" border="0" width="100%">
<tr>
<td>
<table cellpadding="2" cellspacing="0" border="1" width="100%">
<tr>
<td class="ColumnHeader">Task</td>
<td width="100" class="ColumnHeader">Start</td>
<td width="100" class="ColumnHeader">Finish</td>
<td width="100" class="ColumnHeader">Assigned To</td>
<td width="100" class="ColumnHeader">Priority</td>
<td width="100" class="ColumnHeader">Status</td>
<td width="100" class="ColumnHeader">Description</td>
</tr>
<xsl:apply-templates select="Task"/>
</table>
</td>
</tr>
</table>
</xsl:template>
<!-- SUMMARY TASK -->
<xsl:template match="SummaryTask">
<tr>
<td valign="top"><xsl:value-of select="TaskName"/> </td>
<td width="80" nowrap="true" valign="top"><xsl:value-of select="StartDate"/> </td>
<td width="80" nowrap="true" valign="top"><xsl:value-of select="FinishDate"/> </td>
<td width="100" nowrap="true" valign="top"><xsl:value-of select="AssignedTo"/> </td>
<td width="60" nowrap="true" valign="top"><xsl:value-of select="Priority"/> </td>
<td width="60" nowrap="true" valign="top"><xsl:value-of select="Status"/> </td>
<td width="150" valign="top"><xsl:value-of select="Description"/> </td>
</tr>
<xsl:apply-templates select="Task"/>
</xsl:template>
<!-- TASK -->
<xsl:template match="Task">
<tr>
<td valign="top"><xsl:apply-templates select="TaskName"/> </td>
<td width="80" nowrap="true" valign="top"><xsl:value-of select="StartDate"/> </td>
<td width="80" nowrap="true" valign="top"><xsl:value-of select="FinishDate"/> </td>
<td width="100" nowrap="true" valign="top"><xsl:value-of select="AssignedTo"/> </td>
<td width="60" nowrap="true" valign="top"><xsl:value-of select="Priority"/> </td>
<td width="60" nowrap="true" valign="top"><xsl:value-of select="Status"/> </td>
<td width="150" valign="top"><xsl:value-of select="Description"/> </td>
</tr>
<xsl:apply-templates select="Task"/>
</xsl:template>
<xsl:template match="TaskName">
<xsl:eval no-entities="true">ProperIndent(this)</xsl:eval>
</xsl:template>
<xsl:script>
<![CDATA[
function ProperIndent(i_objNode)
{
var strIndented = i_objNode.text;
var intDepth = depth(i_objNode) - 3;
for (var i = 0; i < intDepth; i++)
{
strIndented = " " + strIndented;
}
return strIndented;
}
]]>
</xsl:script>
</xsl:stylesheet>