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 >
Extensible Markup Language  |  2007-02-04  |  3KB  |  110 lines

  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  3.  
  4.     <!-- MAIN -->
  5.     <xsl:template match="/">
  6.         <html>
  7.         <head>
  8.             <style type="text/css">
  9.             <![CDATA[
  10.             BODY, TABLE, TR, TD {
  11.                 font-family:        tahoma, arial, sans-serif;
  12.                 font-size:            11px;
  13.             }
  14.  
  15.             .PageHeader {
  16.                 font-size:            15px;
  17.                 font-weight:        bold;
  18.             }
  19.  
  20.             .ColumnHeader {
  21.                 background-color:    navy;
  22.                 color:                white;
  23.                 font-weight:        bold;
  24.                 font-size:            13px;
  25.             }
  26.             ]]>
  27.             </style>
  28.         </head>
  29.         <body>
  30.  
  31.             <xsl:apply-templates/>
  32.  
  33.         </body>
  34.         </html>
  35.     </xsl:template>
  36.  
  37.     <!-- ACTIVITY REPORT -->
  38.     <xsl:template match="ProjectToolReport">
  39.         <table cellpadding="2" cellspacing="2" border="0" width="100%">
  40.         <tr>
  41.             <td>
  42.                 <table cellpadding="2" cellspacing="0" border="1" width="100%">
  43.                     <tr>
  44.                         <td class="ColumnHeader">Task</td>
  45.                         <td width="100" class="ColumnHeader">Start</td>
  46.                         <td width="100" class="ColumnHeader">Finish</td>
  47.                         <td width="100" class="ColumnHeader">Assigned To</td>
  48.                         <td width="100" class="ColumnHeader">Priority</td>
  49.                         <td width="100" class="ColumnHeader">Status</td>
  50.                         <td width="100" class="ColumnHeader">Description</td>
  51.                     </tr>
  52.  
  53.                     <xsl:apply-templates select="Task"/>
  54.  
  55.                 </table>
  56.             </td>
  57.         </tr>
  58.         </table>
  59.     </xsl:template>
  60.  
  61.     <!-- SUMMARY TASK -->
  62.     <xsl:template match="SummaryTask">
  63.         <tr>
  64.             <td valign="top"><xsl:value-of select="TaskName"/> </td>
  65.             <td width="80" nowrap="true" valign="top"><xsl:value-of select="StartDate"/> </td>
  66.             <td width="80" nowrap="true" valign="top"><xsl:value-of select="FinishDate"/> </td>
  67.             <td width="100" nowrap="true" valign="top"><xsl:value-of select="AssignedTo"/> </td>
  68.             <td width="60" nowrap="true" valign="top"><xsl:value-of select="Priority"/> </td>
  69.             <td width="60" nowrap="true" valign="top"><xsl:value-of select="Status"/> </td>
  70.             <td width="150" valign="top"><xsl:value-of select="Description"/> </td>
  71.         </tr>
  72.         <xsl:apply-templates select="Task"/>
  73.     </xsl:template>
  74.  
  75.     <!-- TASK -->
  76.     <xsl:template match="Task">
  77.         <tr>
  78.             <td valign="top"><xsl:apply-templates select="TaskName"/> </td>
  79.             <td width="80" nowrap="true" valign="top"><xsl:value-of select="StartDate"/> </td>
  80.             <td width="80" nowrap="true" valign="top"><xsl:value-of select="FinishDate"/> </td>
  81.             <td width="100" nowrap="true" valign="top"><xsl:value-of select="AssignedTo"/> </td>
  82.             <td width="60" nowrap="true" valign="top"><xsl:value-of select="Priority"/> </td>
  83.             <td width="60" nowrap="true" valign="top"><xsl:value-of select="Status"/> </td>
  84.             <td width="150" valign="top"><xsl:value-of select="Description"/> </td>
  85.         </tr>
  86.         <xsl:apply-templates select="Task"/>
  87.     </xsl:template>
  88.  
  89.     <xsl:template match="TaskName">
  90.         <xsl:eval no-entities="true">ProperIndent(this)</xsl:eval>
  91.     </xsl:template>
  92.  
  93.     <xsl:script>
  94.     <![CDATA[
  95.     function ProperIndent(i_objNode)
  96.     {
  97.         var strIndented = i_objNode.text;
  98.         var intDepth = depth(i_objNode) - 3;
  99.  
  100.         for (var i = 0; i < intDepth; i++)
  101.         {
  102.             strIndented = "   " + strIndented;
  103.         }
  104.         return strIndented;
  105.     }
  106.     ]]>
  107.     </xsl:script>
  108.  
  109. </xsl:stylesheet>
  110.