You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by dm...@apache.org on 2001/11/26 22:40:25 UTC

cvs commit: xml-xalan/test/tests/conf/match/err matcherr11.xsl matcherr11.xml

dmarston    01/11/26 13:40:25

  Added:       test/tests/conf/match/err matcherr11.xsl matcherr11.xml
  Log:
  Catch attempt to use // alone as a match pattern.
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/conf/match/err/matcherr11.xsl
  
  Index: matcherr11.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: MATCHerr11 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 5.2 -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Test '//' in a match pattern -->
    <!-- ExpectedException: Unexpected token in pattern -->
  
  <xsl:template match="defaultcontent">
    <out>
      <xsl:apply-templates/>
    </out>
  </xsl:template>
  
  <xsl:template match="//">
    <xsl:value-of select="name(.)"/>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/match/err/matcherr11.xml
  
  Index: matcherr11.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
    <defaultcontent>
      <section1/>
      <section2/>
    </defaultcontent>
  </doc>
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org