<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- csl2-1.pl - processador de restrições
     jcr - 2001.05.16 -->

<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
                
<xsl:output indent="yes" encoding="iso-8859-1"/>

<xsl:template match="/">
  <doc-status>
<xsl:apply-templates mode="const1"/>
  </doc-status>
</xsl:template>
  
<!--******** NEW CONSTRAINT ********-->
<xsl:template mode="const1" match="
    
    //student/grades/*">
  <xsl:if test="not(.&gt;10)">
    <err-message>
      WARNING: 
        <xsl:value-of select='name(.)'/> of
        <xsl:value-of select='../../name'/> is below minimum!
    </err-message>
</xsl:if>
  <xsl:apply-templates mode="const1"/>
</xsl:template>


<xsl:template match="text()" priority="-1" mode="const1"/>
<xsl:template match="//text()" priority="-1">
</xsl:template>

</xsl:stylesheet>

