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 2002/01/17 00:13:02 UTC

cvs commit: xml-xalan/test/tests/conf/math math110.xsl math110.xml

dmarston    02/01/16 15:13:02

  Added:       test/tests/conf/math math110.xsl math110.xml
  Log:
  New cases to confirm bugs more easily.
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/conf/math/math110.xsl
  
  Index: math110.xsl
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: MATH110 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 4.4 -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Test of number() conversion function for small decimal numbers. -->
  
  <xsl:output method="xml" indent="no" encoding="UTF-8"/>
  
  <xsl:template match="doc">
    <out>
        <xsl:value-of select="number(1.75)"/>
        <xsl:text>|</xsl:text>
        <xsl:value-of select="number(7 div 4)"/>
        <xsl:text>|</xsl:text>
        <xsl:value-of select="(1.75 = (7 div 4))"/>
        <xsl:text>|&#10;</xsl:text>
        <xsl:value-of select="number(0.0175 * 100)"/>
        <xsl:text>|</xsl:text>
        <xsl:value-of select="(1.75 = (0.0175 * 100))"/>
        <xsl:text>|&#10;</xsl:text>
        <xsl:value-of select="number(k)"/>
        <xsl:text>|</xsl:text>
        <xsl:value-of select="number(4 div 10000)"/>
        <xsl:text>|</xsl:text>
        <xsl:value-of select="(k = (4 div 10000))"/>
        <xsl:text>|&#10;</xsl:text>
        <xsl:value-of select="number(0.0001 * 4)"/>
        <xsl:text>|</xsl:text>
        <xsl:value-of select="(k = (0.0001 * 4))"/>
        <xsl:text>|&#10;</xsl:text>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/math/math110.xml
  
  Index: math110.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <doc>
    <k>0.0004</k>
  </doc>
  
  

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