<?xml version="1.0"?>
<!-- 
The aim of this stylesheet is to test the extraction of data  from a TR document (the extraction must only work for pubrules compliant doc)

$Id: test.xsl,v 1.13 2008/02/19 20:29:14 ijacobs Exp $
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0" xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:trd="http://www.w3.org/2001/10/trdoc-data.xsl"
exclude-result-prefixes="html trd">
  <xsl:import href="../../10/trdoc-data.xsl" />

  <div xmlns="http://www.w3.org/1999/xhtml">
    <h1>
    <a href="http://www.w3.org/">
      <img src="http://www.w3.org/Icons/w3c_home" alt="W3C" />
    </a>

    XSLT stylesheet to test <a href="http://www.w3.org/2001/10/trdoc-data.xsl">http://www.w3.org/2001/10/trdoc-data.xsl</a></h1>

    <p>$Id: test.xsl,v 1.13 2008/02/19 20:29:14 ijacobs Exp $</p>

    <h2>Status</h2>
    <p>Updates to this stylesheet should only be done when new templates are added to trdoc-data.xsl or to fix bugs. Changes should be reviewed by the W3C Webmaster.</p>
    <p>Whenever you update this stylesheets, please update <a href="results.orig">results.orig</a> accordingly.</p>


    <h2>References</h2>

    <ul>
      <li>
        <a href="../../TR/">List of W3C Technical Reports</a>
      </li>

      <li>
        <a href="../07/pubrules-form">the online pubrules
        checker</a>
      </li>

      <li>
        <a href="../../Guide/pubrules">the W3C publication
        rules</a>
      </li>

    </ul>

    <hr />
  </div>

  <xsl:output method="text" media-type="text/plain" indent="yes" />
  <xsl:param name="debug" select="0" />
  <xsl:variable name="ShortStatus"><xsl:call-template name="trd:getShortStatus"/></xsl:variable>
  <xsl:variable name="NumericDate"><xsl:call-template name="trd:getNumericDate"/></xsl:variable>
  <xsl:variable name="Title"><xsl:call-template name="trd:getTitle"/></xsl:variable>
  <xsl:variable name="ThisVersion"><xsl:call-template name="trd:getVersionURI"><xsl:with-param name="which">this</xsl:with-param></xsl:call-template></xsl:variable>
  <xsl:variable name="LatestVersion"><xsl:call-template name="trd:getVersionURI"><xsl:with-param name="which">latest</xsl:with-param></xsl:call-template></xsl:variable>
  <xsl:variable name="EditorSection"><xsl:call-template name="trd:getEditorsSectionName"/></xsl:variable>
  <xsl:template match="/">- status subtitle: <xsl:call-template name="trd:getStatusSubtitle"/>
- status: <xsl:call-template name="trd:getStatus"/>
- short status: <xsl:value-of select="$ShortStatus"/>
- short status from lvuri: <xsl:value-of select="trd:getShortStatusFromURI()"/>
- date: <xsl:call-template name="trd:getDate"/>
- numeric date: <xsl:value-of select="$NumericDate"/>
- title: <xsl:value-of select="$Title"/>
- versions URI:
	- this: <xsl:value-of select="$ThisVersion"/>
	- latest: <xsl:value-of select="$LatestVersion"/>
	- previous: <xsl:call-template name="trd:getVersionURI"><xsl:with-param name="which">previous</xsl:with-param></xsl:call-template>
- has new shortname: <xsl:call-template name="trd:hasNewShortname"/>
- editors section: <xsl:value-of select="$EditorSection"/>
- editors list: <xsl:call-template name="trd:getEditorsList"/>
- least pubrules compliance: <xsl:if test="normalize-space($ShortStatus) and normalize-space($NumericDate) and normalize-space($ThisVersion) and normalize-space($LatestVersion) and normalize-space($EditorSection) and normalize-space($Title)">yes</xsl:if>
- activities: <xsl:call-template name="trd:getActivity"/>
- WG: <xsl:call-template name="trd:getWorkingGroup"/>
- feedbackDue: <xsl:call-template name="trd:getFeedbackDueDate"/>
- errata: <xsl:call-template name="trd:getErrata"/>
- translations: <xsl:call-template name="trd:getTranslations"/>
- interop: <xsl:call-template name="trd:getImplReport"/>
- under W3C PP ?: <xsl:call-template name="trd:underW3CPatentPolicy"/>
- under CPP ?: <xsl:call-template name="trd:underCPP"/>
- not targetting rec?: <xsl:value-of select="trd:isNotTargetingRec()"/>

<!--
<xsl:message>
status section:
<xsl:copy-of select="trd:getStatusSection()"/>
</xsl:message>
-->

  </xsl:template>
</xsl:stylesheet>
