<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/"
    xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/"
  version="1.0">

    <xsl:output method="html" indent="yes" encoding="UTF-8"/>


  <xsl:template match="/">
<html>
  <head>
    <title>XML Schema Patterns for Databinding - Conformance Report</title>
  	<link type="text/css" rel="stylesheet" href="http://www.w3.org/StyleSheets/TR/base.css"></link>
  </head>

  <body>
  	<h3>XML Schema Patterns for Databinding - Conformance Report</h3>

    <h4>Conformance Compliance Level :<xsl:value-of select="//detected/@status"/></h4>
	<table border="1">
	    <tr>
		<th>Pattern</th>
		<th>Status</th>
		<th>XPath</th>
	    </tr>

	    <xsl:for-each select="//pattern">
			<tr>
			  <td><a href="{./@pattern}"><xsl:value-of select="./@name"/></a></td>
	    		<td><xsl:value-of select="./@status"/></td>
	    		<td><xsl:value-of select="./@xpath"/></td>
	    	</tr>
	    </xsl:for-each>
    </table>


  </body>
</html>
  </xsl:template>

</xsl:stylesheet>
