tests/expr/math/math-3303a.xsl
changeset 1198 aacf3d6d8681
child 1211 226a4c4600fb
equal deleted inserted replaced
1197:d300f98a5bb8 1198:aacf3d6d8681
       
     1 <?xml version="1.0" encoding="ISO-8859-1"?>
       
     2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
       
     3 <?spec fo#func-round-half-to-even?>
       
     4 <!-- PURPOSE:  Test of round-half-to-even on doubles. -->
       
     5     <!-- Variant forcing runtime evaluation -->
       
     6     
       
     7     <xsl:param name="p" select="1"/>
       
     8 
       
     9 <xsl:template match="doc">
       
    10 <out>;
       
    11     <a b="{round-half-to-even($p*120.0e0)}" c="{round-half-to-even($p*0.0e0)}" d="{round-half-to-even($p*-3.0e0)}"/>;
       
    12     <a b="{round-half-to-even($p*120.0e0, 2)}" c="{round-half-to-even($p*0.0e0, 2)}" d="{round-half-to-even($p*-3.0e0, 2)}"/>;
       
    13     <a b="{round-half-to-even($p*120.0e0, -2)}" c="{round-half-to-even($p*0.0e0, -2)}" d="{round-half-to-even($p*-3.0e0, -2)}"/>;
       
    14     <a b="{round-half-to-even($p*180.0e0, -2)}" c="{round-half-to-even($p*150.0e0, -2)}" d="{round-half-to-even($p*250.0e0, -2)}"/>;
       
    15     <a b="{round-half-to-even($p*-120.0e0, -2)}" c="{round-half-to-even($p*-150.0e0, -2)}" d="{round-half-to-even($p*-250.0e0, -2)}"/>;
       
    16     <a b="{round-half-to-even($p*180.0180e0, 2)}" c="{round-half-to-even($p*150.0150e0, 2)}" d="{round-half-to-even($p*250.0250e0, 2)}"/>;
       
    17     <a b="{round-half-to-even($p*-120.0120e0, 2)}" c="{round-half-to-even($p*-150.0150e0, 2)}" d="{round-half-to-even($p*-250.0250e0, 2)}"/>;
       
    18 </out>
       
    19 </xsl:template>
       
    20 </xsl:stylesheet>