<?xml version='1.0'?>
<!DOCTYPE xsl:stylesheet
 [ <!ENTITY xnbsp "&amp;nbsp;">
   <!ENTITY nbsp "&#160;"> ]>
<xsl:stylesheet version="1.0"
                xmlns="http://www.w3.org/TR/xhtml1/transitional"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<!-- Project Notebook XSLT translator stylesheet.

     Project Issues page - generates projissues.html

     This is a *very rough* first cut at translating the Project Notebook
     XML document into HTML automatically.
-->

<xsl:output method="html" indent="yes" media-type="text/html"/>

<xsl:include href="shared.xsl" /> <!-- shared definitions for I/S Project -->

<xsl:template match="/project">
    <HTML xmlns="http://www.w3.org/TR/xhtml1/transitional">

    <xsl:call-template name="head-element">
        <xsl:with-param name="title"><xsl:value-of select="@name"/> -- Issues</xsl:with-param>
    </xsl:call-template>

    <xsl:element name="BODY" use-attribute-sets="body-attrs">

    <xsl:call-template name="title-block">
        <xsl:with-param name="title">Project Issues</xsl:with-param>
        <xsl:with-param name="subtitle"><xsl:value-of select="/project/@name"/></xsl:with-param>
    </xsl:call-template>

    <TABLE BORDER="0" CELLSPACING="3" CELLPADDING="3" WIDTH="100%">

       <xsl:call-template name="title-row"/>

       <!-- Table row with nothing but a horizontal rule -->
       <TR><TD COLSPAN="2"><P><HR/></P></TD></TR>

       <TR>
         <xsl:element name="TH" use-attribute-sets="left-column">
            <STRONG>Issues</STRONG>
         </xsl:element>
         <TD>
           <xsl:for-each select="issue">
              <P/>
              <TABLE BORDER="1" CELLSPACING="3" CELLPADDING="3" WIDTH="80%">
              <TR>
                 <TH align="center" width="10%" BGCOLOR="{$boxcolor}"><B>Category</B></TH>
                 <TD><xsl:value-of select="@category"/><BR/></TD>
              </TR>
              <TR>
                 <TH align="center" width="10%" BGCOLOR="{$boxcolor}"><B>Date Entered</B></TH>
                 <TD><xsl:value-of select="@entered"/><BR/></TD>
              </TR>
              <TR>
                 <TH align="center" width="10%" BGCOLOR="{$boxcolor}"><B>Status</B></TH>
                 <TD><xsl:value-of select="@status"/><BR/></TD>
              </TR>
              <TR>
                 <TH align="center" width="10%" BGCOLOR="{$boxcolor}"><B>Owner</B></TH>
                 <TD><xsl:value-of select="@owner"/><BR/></TD>
              </TR>
              <TR>
                 <TH align="center" width="10%" BGCOLOR="{$boxcolor}"><B>Description</B></TH>
                 <TD><xsl:value-of select="@description"/><BR/></TD>
              </TR>
              <TR>
                 <TH align="center" width="10%" BGCOLOR="{$boxcolor}"><B>Resolved</B></TH>
                 <TD><xsl:value-of select="@resolved"/><BR/></TD>
              </TR>
              <TR>
                 <TH align="center" width="10%" BGCOLOR="{$boxcolor}"><B>Resolution<BR/>Explanation</B></TH>
                 <TD><xsl:value-of select="@resolution"/><BR/></TD>
              </TR>
            </TABLE>
            <xsl:apply-templates select="*|text()"/>
           </xsl:for-each>
         </TD>
       </TR>

    </TABLE>
         
    <xsl:call-template name="trailer-block"/>

    </xsl:element> <!-- /body -->
    </HTML>
</xsl:template>

</xsl:stylesheet>
