<?xml version="1.0" ?>
<!-- Preprocessor for the Schematron XML Schema Language.
	http://www.ascc.net/xml/resource/schematron/schematron.html
    Copyright (C) 1999 Rick Jelliffe and Academia Sinica Computing Centre
    Permission to use granted under GPL or MPL.

    revised by Dan Connolly to use XHTML without frames
    $Id: sch-report.xsl,v 1.2 2000/07/21 19:28:41 connolly Exp $
-->

<!-- Schematron report -->

<xsl:stylesheet
   version="1.0"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   xmlns:axsl="http://www.w3.org/1999/XSL/TransformAlias"
   xmlns="http://www.w3.org/1999/xhtml"
   >

<xsl:import href="schematron-skel-ns.xsl"/>

<xsl:template name="process-prolog">
   <axsl:output method="xml" indent="yes"
	encoding="US-ASCII"
	omit-xml-declaration="yes"
	media-type="text/html"/>
</xsl:template>

<xsl:template name="process-root">
   <xsl:param name="title" />
   <xsl:param name="contents" />
   <html><head>
      <style>
         a:link    { color: black}
         a:visited { color: gray}
         a:active  { color: #FF0088}
/*         h3        { background-color:black; color:white;
                     font-family:Arial Black; font-size:12pt; }
         h3.linked { background-color:black; color:white;
                     font-family:Arial Black; font-size:12pt; } */
         .sch { color: #FF0080 }
      </style></head>
      <body>
      <h2>
         <span class="sch">Schematron</span> Report
      </h2>
      <h1 title="{@ns} {@fpi} @@">
         <xsl:value-of select="$title" />
      </h1>
      <div class="errors">
            <xsl:copy-of select="$contents" />
      </div>
      <hr class="sch" />
      <address>Schematron Report by David Carlisle, modified by <a href="/People/Connolly/">Dan Connolly</a>.
      <a href="http://www.ascc.net/xml/resource/schematron/schematron.html"
         title="Schematron, 
                a tree-pattern schema language">
         <span class="sch">The Schematron</span>
      </a> by
      <a href="mailto:ricko@allette.com.au"
         title="mailbox of Rick Jelliffe (pronounced RIK JELIF)"
      >Rick Jelliffe</a>,
      <a href="http://www.sinica.edu.tw"
         title="home page of Academia Sinica"
      >Academia Sinica Computing Centre</a>.
      </address>
      </body>
   </html>
</xsl:template>

<xsl:template name="process-pattern">
   <xsl:param name="name" />
   <xsl:param name="see" />
   <xsl:choose>
      <xsl:when test="$see">
            <h3 class="linked">
         <a href="{$see}" target="SRDOCO" 
            title="Link to User Documentation:">
               <xsl:value-of select="$name" />
         </a>
            </h3>
      </xsl:when>
      <xsl:otherwise>
         <h3><xsl:value-of select="$name" /></h3>
      </xsl:otherwise>
   </xsl:choose>
</xsl:template>

<!-- use default rule for process-name: output name -->

<xsl:template name="process-message">
   <xsl:param name="pattern" />
   <xsl:param name="role" />
<dl>   <dt>
      <strong><xsl:apply-templates mode="text"/>
         (<xsl:value-of select="$role"/>)</strong></dt>
	<dd><tt>&lt;<axsl:value-of select="name()"/><axsl:for-each select="@*"><axsl:value-of select="' '"/><axsl:value-of select="name()"/>="<axsl:value-of select="."/>"</axsl:for-each>&gt;...&lt;/&gt;</tt>
   </dd>                    
</dl>
</xsl:template>

</xsl:stylesheet>
