You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by cu...@apache.org on 2001/02/01 01:33:19 UTC

cvs commit: xml-xalan/test/tests/conf/ver ver05.xml ver05.xsl ver06.xml ver06.xsl ver07.xml ver07.xsl

curcuru     01/01/31 16:33:19

  Added:       test/tests/conf/ver ver05.xml ver05.xsl ver06.xml ver06.xsl
                        ver07.xml ver07.xsl
  Log:
  New test files for xsl:version 1.1, 1.2, 2.0
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/conf/ver/ver05.xml
  
  Index: ver05.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/ver/ver05.xsl
  
  Index: ver05.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  				version="1.1">
  
    <!-- FileName: Ver05 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 2.5 Forwards-Compatible Processing  -->
    <!-- Creator: Shane Curcuru -->
    <!-- Purpose: Test the basics of the XSLT version declaration. Should not raise an error. -->
    <!-- Note that this test obviously needs updating as soon as we support XSLT 1.1! -->
  
    <xsl:template match="/">
      <out>
        <xsl:text>xsl:choose when test="system-property('xsl:version') &gt;= 1.1"</xsl:text>
        <choose>
        <xsl:choose>
          <xsl:when test="system-property('xsl:version') &gt;= 1.1">
            <xsl:text>Hey! Call the 1.1 feature!</xsl:text>
            <xsl:exciting-new-1.1-feature/>
          </xsl:when>
          <xsl:otherwise>
            <xsl:text>Hey! 1.1 features are not supported!</xsl:text>
          </xsl:otherwise>
        </xsl:choose>
        </choose>
      </out>
    </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/ver/ver06.xml
  
  Index: ver06.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/ver/ver06.xsl
  
  Index: ver06.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  				version="1.2">
  
    <!-- FileName: Ver06 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 2.5 Forwards-Compatible Processing  -->
    <!-- Creator: Shane Curcuru -->
    <!-- Purpose: Test the basics of the XSLT version declaration. Should not raise an error. -->
    <!-- Note that this test obviously needs updating as soon as we support XSLT 1.2! -->
  
    <xsl:template match="/">
      <out>
        <xsl:text>xsl:choose when test="system-property('xsl:version') &gt;= 1.2"</xsl:text>
        <choose>
        <xsl:choose>
          <xsl:when test="system-property('xsl:version') &gt;= 1.2">
            <xsl:text>Hey! Call the 1.2 feature!</xsl:text>
            <xsl:exciting-new-1.2-feature/>
          </xsl:when>
          <xsl:otherwise>
            <xsl:text>Hey! 1.2 features are not supported!</xsl:text>
          </xsl:otherwise>
        </xsl:choose>
        </choose>
      </out>
    </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/ver/ver07.xml
  
  Index: ver07.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/ver/ver07.xsl
  
  Index: ver07.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  				version="2.0">
  
    <!-- FileName: Ver07 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 2.5 Forwards-Compatible Processing  -->
    <!-- Creator: Shane Curcuru -->
    <!-- Purpose: Test the basics of the XSLT version declaration. Should not raise an error. -->
    <!-- Note that this test obviously needs updating as soon as we support XSLT 2.0! -->
  
    <xsl:template match="/">
      <out>
        <xsl:text>xsl:choose when test="system-property('xsl:version') &gt;= 2.0"</xsl:text>
        <choose>
        <xsl:choose>
          <xsl:when test="system-property('xsl:version') &gt;= 2.0">
            <xsl:text>Hey! Call the 2.0 feature!</xsl:text>
            <xsl:exciting-new-2.0-feature/>
          </xsl:when>
          <xsl:otherwise>
            <xsl:text>Hey! 2.0 features are not supported!</xsl:text>
          </xsl:otherwise>
        </xsl:choose>
        </choose>
      </out>
    </xsl:template>
  
  </xsl:stylesheet>