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/06/21 23:25:32 UTC

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

dmarston    01/06/21 14:25:31

  Added:       test/tests/conf/match match15.xsl match15.xml
  Log:
  Another test from NIST
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/conf/match/match15.xsl
  
  Index: match15.xsl
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: match15 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 2.4 -->
    <!-- Creator: Carmelo Montanez --><!-- LocationPath010 in NIST suite -->
    <!-- Purpose: Test a match patttern with a complex expression. -->
  
  <xsl:template match = "/">
    <xsl:apply-templates select="doc/element1[2]/child1[last()]"/>
  </xsl:template>
  
  <xsl:template match="doc/element1[(((((2*10)-4)+9) div 5) mod 3)]/child1[last()]">
    <out>
      <xsl:value-of select = "."/>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/match/match15.xml
  
  Index: match15.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
    <element1>Wrong Node Selected!</element1>
    <element1>
      <child1>Wrong Node Selected!!</child1>
      <child1>Wrong Node Selected!!</child1>
      <child1>Test Executed Successfully.</child1>
    </element1>
    <element1>Wrong Node Selected!</element1>
  </doc>
  
  
  

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