<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schema.rvdata.us/2.0/base.xsd" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:r2r="http://get.rvdata.us/schema/r2r-2.0" >

<xsl:template match="/">
  <html>
  		<head>
		

			<link media="all" type="text/css" href="http://get.rvdata.us/qa_inc/css/custom-theme/jquery-ui-1.8.11.custom.css" rel="stylesheet"></link>
            <link media="all" type="text/css" href="http://get.rvdata.us/css/qacert_2.0.css" rel="stylesheet"></link>
			
		</head>
  <body>
	<h1>R2R Quality Assurance Certificate (QAC) Test Summary</h1>
	<b>Cruise ID = </b><xsl:value-of select="/r2r:qareport/r2r:provenance/r2r:cruise_id"/><br/>
	<b>Device = </b><xsl:value-of select="/r2r:qareport/r2r:provenance/r2r:device_type"/>
			(<xsl:value-of select="/r2r:qareport/r2r:filesetinfo/r2r:fileset/r2r:device/r2r:make_id"/>, <xsl:value-of select="/r2r:qareport/r2r:filesetinfo/r2r:fileset/r2r:device/r2r:model_name"/>)<br/>
	<b>R2R Fileset ID = </b><xsl:value-of select="/r2r:qareport/r2r:provenance/r2r:fileset_id"/><br/>
	<b>QA Report Version = </b><xsl:value-of select="/r2r:qareport/r2r:version"/><br/>
	<br/>
  <table border="1">
    <tr bgcolor="#9acd32">
      <th style="text-align:left">Name</th>
      <th style="text-align:left">Description</th>
    </tr>
	<xsl:for-each select="/r2r:qareport/r2r:certificate/r2r:tests/r2r:test">
					<xsl:sort select="@name" order="ascending"/>
		    <tr>
      <td><xsl:value-of select="@name" /></td>
      <td><xsl:value-of select="@description" /></td>
    </tr>
    </xsl:for-each>
  </table>
  </body>
  </html>
</xsl:template>

</xsl:stylesheet> 