<?xml-stylesheet href="http://www.w3.org/StyleSheets/base.css" type="text/css"?>
<?xml-stylesheet href="http://www.w3.org/2002/02/style-xsl.css" type="text/css"?>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:html="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml">
<!-- Output method XML -->
<xsl:output method="html" 
indent="yes"
omit-xml-declaration="no" 
encoding="ISO-8859-1" 
standalone="no"/>

<xsl:param name="xmlfile"/>

<html  xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>XSLT stylesheet to extract conformance requirements from the QA WG GL</title>
    <link rel="stylesheet" href="/StyleSheets/base"/>
  </head>
  <div class="head">
    <a href="http://www.w3.org/">
      <img src="http://www.w3.org/Icons/w3c_home" alt="W3C" />
    </a> | <a href="/QA/Group/Editors/">QA WG Editors toolbox</a></div>  

    <h1>XSLT stylesheet to extract conformance requirements from the QA WG GL</h1>
    <p>This style sheet relies on the conventions for marking up the Guidelines documents delivered by the QA WG to extract the conformance requirements from there. Try it out:</p>
    <form action="http://www.w3.org/2000/06/webdata/xslt"
    method="get">
      <p><label><input type="text" name="xmlfile" value="http://www.w3.org/TR/qaframe-spec/guidelines-chapter" /> URI of the guidelines</label></p>
      <p><input type="hidden" name="xslfile" value="http://www.w3.org/QA/WG/2004/02/extract-cr-from-gl.xsl"/><input type="submit" /></p>
    </form>
    <address><p>Written by <a href="/People/Dom/">Dominique Hazael-Massieux</a>, $Id: extract-cr-from-gl.xsl,v 1.5 2004/02/18 17:29:59 dom Exp $</p></address>

</html>

<xsl:template match="/">
  <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
      <title>Conformance requirements extracted from <xsl:value-of select="/html:html/html:head/html:title"/></title>
      <link rel="Stylesheet" href="/QA/2002/12/qa4.css" />
      <link rel="stylesheet" href="/StyleSheets/TR/base"/>
    </head>
    <body>
      <div id="Logo">
        <a href="http://www.w3.org/"><img alt="W3C" src="/Icons/WWW/w3c_home" /></a>
        <a href="http://www.w3.org/QA/"><img alt="QA" src="/QA/images/qa" width="161"
        height="48" /></a> <!-- <div id="Header">Be strict to be cool</div> -->
        
        
<div>
<map name="introLinks" id="introLinks" title="Introductory Links">

  <div class="banner">
  <a class="bannerLink" title="W3C Activities" accesskey="A"
  href="/Consortium/Activities">Activities</a> | <a class="bannerLink"
  title="Technical Reports and Recommendations" accesskey="T"
  href="/TR/">Technical Reports</a> | <a class="bannerLink"
  title="Alphabetical Site Index" accesskey="S" href="/Help/siteindex">Site
  Index</a> | <a class="bannerLink" title="Help for new visitors"
  accesskey="N" href="/2002/03/new-to-w3c">New Visitors</a> | <a
  class="bannerLink" title="About W3C" accesskey="B"
  href="/Consortium/">About W3C</a> | <a class="bannerLink" title="Join W3C"
  accesskey="J" href="/Consortium/Prospectus/Joining">Join W3C</a></div>

</map>
</div>
</div>
<div id="Menu"><p class="navhead">Nearby:</p>

<p><a href="/QA/"><abbr
title="Quality Assurance">QA</abbr>&#xa0;Homepage</a><span
class="dot">·</span> <a href="/QA/#latest">Latest News</a><span
class="dot">·</span> <a href="/QA/#resources">QA&#xa0;Resources</a><span
class="dot">·</span> <a href="/QA/IG/">QA&#xa0;<abbr
title="Interest Group">IG</abbr></a><span class="dot">·</span> <a
href="/QA/Group/">QA&#xa0;Group</a><span class="dot">·</span> <a
href="/QA/Agenda/">QA&#xa0;Calendar</a><span class="dot">·</span></p>

</div>
<!-- content -->

<div id="Content">
      <h1>Conformance requirements extracted from <xsl:value-of select="/html:html/html:head/html:title"/></h1>
      <h2>Priority 1:</h2>
      <ol>
        <xsl:for-each select="/html:html/html:body//html:div[@class='CP' and html:h4/@class='checkpoint1']">
          <li><xsl:apply-templates select="html:div[@class='TA']/html:*[not(local-name()='h5')]"/></li>
        </xsl:for-each>
      </ol>
      <h2>Priority 2:</h2>
      <ol>
        <xsl:for-each select="/html:html/html:body//html:div[@class='CP' and html:h4/@class='checkpoint2']">
          <li><xsl:apply-templates select="html:div[@class='TA']/html:*[not(local-name()='h5')]"/></li>
        </xsl:for-each>
      </ol>
      <h2>Priority 3:</h2>
      <ol>
        <xsl:for-each select="/html:html/html:body//html:div[@class='CP' and html:h4/@class='checkpoint3']">
          <li><xsl:apply-templates select="html:div[@class='TA']/html:*[not(local-name()='h5')]"/></li>
        </xsl:for-each>
      </ol>
</div>
<address>
<p>Extracted 
<xsl:if test="normalize-space($xmlfile)">
from <a href="{$xmlfile}"><xsl:value-of select="/html:html/html:head/html:title"/></a>
</xsl:if>
by <a href="http://www.w3.org/QA/WG/2004/02/extract-cr-from-gl.xsl">an XSLT style sheet</a></p>
</address>
    </body>
  </html>
</xsl:template>

  <!-- default: Identity Transformation -->
  <xsl:template match="*|@*|comment()|text()">
    <xsl:copy>
      <xsl:apply-templates select="*|@*|comment()|text()"/>
    </xsl:copy>
  </xsl:template>


</xsl:stylesheet>
