code: public boolean matches(XPathContext xctxt, int targetNode, QName mode)
            throws TransformerException
    {
  
      double score = m_stepPattern.getMatchScore(xctxt, targetNode);
  
      return (XPath.MATCH_SCORE_NONE != score)
             && matchModes(mode, m_template.getMode());
    }
docs: Return the mode associated with the template.
  
  
  @param xctxt XPath context to use with this template
  @param targetNode Target node
  @param mode reference, which may be null, to the <a href="http://www.w3.org/TR/xslt#modes">current mode</a>.
  @return The mode associated with the template.
  
  @throws TransformerException