<?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="http://www.w3.org/1999/xhtml" xmlns:html="http://www.w3.org/1999/xhtml">

<!-- Output method XML -->
<xsl:output method="xml" 
  indent="yes"
  omit-xml-declaration="no" 
  encoding="utf-8" 
  doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
  doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"  />

<!-- using uris when available -->
  <xsl:param name="xmlfile"/>
  <xsl:variable name="doc_uri">
    <xsl:choose>
      <xsl:when test="starts-with($xmlfile,'http://cgi.w3.org/cgi-bin/tidy-if?docAddr=')">
        <xsl:value-of select="substring-after($xmlfile,'http://cgi.w3.org/cgi-bin/tidy-if?docAddr=')"/>
      </xsl:when>
      <xsl:when test="starts-with($xmlfile,'http://cgi.w3.org/cgi-bin/tidy?docAddr=')">
        <xsl:value-of select="substring-after($xmlfile,'http://cgi.w3.org/cgi-bin/tidy?docAddr=')"/>
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="$xmlfile"/>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:variable>


<!-- Documenting the XSLT -->
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <link rel="stylesheet" href="http://www.w3.org/StyleSheets/base"/>
    <title>Extractor of Conformance Requirements in the XInclude Spec format</title>
  </head>
  <body>
    <div class='head'><a href="/"><img src="/Icons/w3c_home" alt="W3C"/></a></div>
    <h1>Extractor of Conformance Requirements in the <a href="http://www.w3.org/TR/2003/WD-xinclude-20031110/">XInclude Spec</a> format</h1>

    <p>This style sheet relies on the MarkUp conventions used in the XInclude specification to extract the list of conformance requirements it contains.</p>

    <form action="http://www.w3.org/2002/08/xslt4html" method="get">
      <div>
        <input type="hidden" name="xslfile" value="http://www.w3.org/2004/04/xinclude-confreq.xsl" />
        <p><label>URI of the specification: <input type="text" name="xmlfile" value="http://www.w3.org/TR/2003/WD-xinclude-20031110/" /></label></p>
        <p><input type="submit" value="Process" /><input type="reset" /></p>
      </div>
    </form>


    <p class="copyright">Copyright &#169; 1994-2004 <a href="http://www.w3.org/">World Wide Web Consortium</a>, (<a
href="http://www.csail.mit.edu/"><acronym title="Massachusetts Institute of
Technology">M.I.T.</acronym></a>, <a
href="http://www.ercim.org/"><acronym
title="European Research Consortium for Informatics and Mathematics">ERCIM</acronym></a>, <a
href="http://www.keio.ac.jp/">Keio University</a>). All Rights
    Reserved. http://www.w3.org/Consortium/Legal/. W3C <a href="http://www.w3.org/Consortium/Legal/copyright-software">software licensing</a> rules apply.</p>
    <address><a href="http://www.w3.org/People/Dom/">Dominique Haza&#235;l-Massieux</a> - $Id: xinclude-confreq.xsl,v 1.5 2004/04/09 12:53:59 dom Exp $</address>
    </body>
</html>

<xsl:template match="/">
  <html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <link rel="stylesheet" href="http://www.w3.org/StyleSheets/base"/>
    <title>Conformance Requirements in "<xsl:value-of select="/html:html/html:head/html:title"/>"</title>
  </head>
  <body>
    <div class='head'><a href="/"><img src="/Icons/w3c_home" alt="W3C"/></a></div>
    <h1>Extracted Conformance Requirements from <cite>
    <xsl:choose>
      <xsl:when test="normalize-space($doc_uri)">
        <a href="{$doc_uri}">
          <xsl:value-of select="/html:html/html:head/html:title"/>
        </a>
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="/html:html/html:head/html:title"/>
      </xsl:otherwise>
    </xsl:choose>
    </cite></h1>
    <h2>MUST</h2>
    <ol>
      <xsl:for-each select="/html:html/html:body//*[html:a[@href='#dt-must' and .='must']]">
        <li><blockquote><xsl:apply-templates select="."/></blockquote></li>
      </xsl:for-each>
    </ol>

    <h2>SHOULD</h2>
    <ol>
    <xsl:for-each select="/html:html/html:body//*[html:a[@href='#dt-must' and .='should']]">
      <li><blockquote><xsl:apply-templates select="."/></blockquote></li>
      </xsl:for-each>
    </ol>

    <h2>MAY</h2>
    <ol>
    <xsl:for-each select="/html:html/html:body//*[html:a[@href='#dt-must' and .='may']]">
      <li><blockquote><xsl:apply-templates select="."/></blockquote></li>
      </xsl:for-each>
    </ol>

    <h2>Errors handling</h2>
    <ol>
    <xsl:for-each select="/html:html/html:body//*[html:a[@href='#dt-error']]">
      <li><blockquote><xsl:apply-templates select="."/></blockquote></li>
      </xsl:for-each>

    </ol>

    <p class="copyright">Copyright &#169; 1994-2004 <a href="http://www.w3.org/">World Wide Web Consortium</a>, (<a
href="http://www.csail.mit.edu/"><acronym title="Massachusetts Institute of
Technology">M.I.T.</acronym></a>, <a
href="http://www.ercim.org/"><acronym
title="European Research Consortium for Informatics and Mathematics">ERCIM</acronym></a>, <a
href="http://www.keio.ac.jp/">Keio University</a>). All Rights
    Reserved. http://www.w3.org/Consortium/Legal/. W3C <a href="http://www.w3.org/Consortium/Legal/copyright-software">software licensing</a> rules apply.</p>
    <address><a href="http://www.w3.org/People/Dom/">Dominique Haza&#235;l-Massieux</a> - Extracted by an <a href="http://www.w3.org/2004/04/xinclude-confreq.xsl">XSLT style sheet</a> ; $Id: xinclude-confreq.xsl,v 1.5 2004/04/09 12:53:59 dom Exp $</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>
