<?xml version="1.0"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" extension-element-prefixes="xsi">
  <xsl:param name="date"/>
  <xsl:param name="pluginName"/>
  <xsl:param name="pluginVersion"/>
  <xsl:param name="projectPath"/>
  <xsl:param name="projectName"/>
  <xsl:param name="userName"/>
  <xsl:template match="/">
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" d1p1:lang="" xmlns:d1p1="en">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>Syntax Check Summary</title>
    <style type="text/css">@media all {  *	                       { font-family:Verdana,Helvetica,Arial,sans-serif; }  body	                     { background-color:rgb(234,234,234); font-size:9pt; }  h1		                     { font-size:12pt; margin:10pt 0 0 0; }  table.titleBar            { background-color:rgb(234,234,234); width:100%; height:48pt; font-size:20pt; font-weight:bold; }  table.creationInfo        { margin: 0 0 0 10pt; font-size:10pt; font-style:italic; }    table.summaryResults      { width:400mm; margin:10pt 0 10pt 10pt; border-collapse:collapse; font-size:9pt; }  table.summaryResults th   { background-color:rgb(192,192,192); color:white; border:1pt solid white; padding:2pt; text-align:left; }  table.summaryResults td   { border:1pt solid white; padding:2pt; }  table.summaryFiles        { width:98%; margin:10pt 0 10pt 10pt; border-collapse:collapse; font-size:9pt; }  table.summaryFiles th     { background-color:rgb(192,192,192); color:white; border:1pt solid white; padding:2pt; text-align:left; }  table.summaryFiles td     { border:1pt solid white; padding:2pt; }  table.summaryConfig       { width:98%; margin:10pt 0 10pt 10pt; border-collapse:collapse; font-size:9pt; }  table.summaryConfig th    { background-color:rgb(192,192,192); color:white; border:1pt solid white; padding:2pt; text-align:left; }  table.summaryConfig td    { border:1pt solid white; padding:2pt; }  table.checkingDetails     { width:98%; margin:10pt 0 2pt 10pt; border-collapse:collapse; font-size:9pt; }  table.checkingDetails th  { border:1pt solid white; padding:2pt; text-align:left; }  table.checkingDetails td  { border:1pt solid white; padding:2pt; }  td.checkingDetailsIssue   { width:36mm; }  table.issueDetails        { width:98%; margin:10pt 0 2pt 10pt; border-collapse:collapse; font-size:9pt; }  table.issueDetails th     { border:1pt solid white; padding:2pt; text-align:left; }  table.issueDetails td     { border:1pt solid white; padding:2pt; }  td.issueDetailsTopic      { width:36mm; color:rgb(178,178,178); }  .textRightAligned         { text-align:right; } }@media print   body	                     { color:black; }  table.summaryResults th   { border:1pt solid black; }  table.summaryResults td   { border:1pt solid black; }  table.summaryFiles th     { border:1pt solid black; }  table.summaryFiles td     { border:1pt solid black; }  table.summaryConfig th    { border:1pt solid black; }  table.summaryConfig td    { border:1pt solid black; }  table.checkingDetails th  { border:1pt solid black; }  table.checkingDetails td  { border:1pt solid black; }  table.issueDetails th     { border:1pt solid black; }  table.issueDetails td     { border:1pt solid black; }}</style>
  </head>
  <body>
    <table class="titleBar">
      <tbody>
        <tr>
          <td>Syntax Check Plugin Summary</td>
        </tr>
      </tbody>
    </table>
      <table class="creationInfo">
        <tbody>
          <tr>
            <td>Project: <xsl:value-of select="$projectPath"/>\<xsl:value-of select="$projectName"/>.odxstudio</td>
          </tr>
          <tr>
            <td>Generated by <xsl:value-of select="$pluginName"/>, Version <xsl:value-of select="$pluginVersion"/></td>
          </tr>
          <tr>
            <td><xsl:value-of select="$date"/> (<xsl:value-of select="$userName"/>)</td>
          </tr>
        </tbody>
      </table>	
			
    <table class="checkingDetails">
      <thead>
        <tr>
          <th>Severity and Category</th>
          <th>Summary and Context</th>
        </tr>
      </thead>
      <tbody>
	    <xsl:for-each select="//*/SyntaxCheckSummaryItem">			    
          <tr>
            <td rowspan="2" class="checkingDetailsIssue"><xsl:value-of select="@Severity"/>: <xsl:value-of select="Category"/></td>
            <td><xsl:value-of select="Summary"/></td>
          </tr>
          <tr>
            <td>
              <a><xsl:attribute name="href">#<xsl:value-of select="Context"/></xsl:attribute><xsl:value-of select="Context"/></a>
            </td> 		  
          </tr>
		</xsl:for-each>
      </tbody>
    </table>			
  </body>
  </html>
  </xsl:template>
</xsl:stylesheet>