tests/expr/math/math-3310a.xsl
changeset 1198 aacf3d6d8681
equal deleted inserted replaced
1197:d300f98a5bb8 1198:aacf3d6d8681
       
     1 <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
       
     2 
       
     3     <xsl:template match="/">
       
     4 
       
     5         <!-- test value comparisons on NaN -->
       
     6         <!-- Variant forcing runtime evaluation -->
       
     7 
       
     8         <xsl:param name="a" select="2"/>
       
     9         <xsl:param name="n" select="number(dummy)"/>
       
    10         <xsl:param name="s" select="(2,3,4)"/>
       
    11         <xsl:param name="t" select="($n, 4)"/>
       
    12         <z>
       
    13             <x>
       
    14                 <f>
       
    15                     <xsl:value-of select="$a eq $n"/>
       
    16                 </f>
       
    17                 <t>
       
    18                     <xsl:value-of select="$a ne $n"/>
       
    19                 </t>
       
    20                 <f>
       
    21                     <xsl:value-of select="$a lt $n"/>
       
    22                 </f>
       
    23                 <f>
       
    24                     <xsl:value-of select="$a le $n"/>
       
    25                 </f>
       
    26                 <f>
       
    27                     <xsl:value-of select="$a gt $n"/>
       
    28                 </f>
       
    29                 <f>
       
    30                     <xsl:value-of select="$a ge $n"/>
       
    31                 </f>
       
    32             </x>
       
    33             <x>
       
    34                 <f>
       
    35                     <xsl:value-of select="$n eq $a"/>
       
    36                 </f>
       
    37                 <t>
       
    38                     <xsl:value-of select="$n ne $a"/>
       
    39                 </t>
       
    40                 <f>
       
    41                     <xsl:value-of select="$n lt $a"/>
       
    42                 </f>
       
    43                 <f>
       
    44                     <xsl:value-of select="$n le $a"/>
       
    45                 </f>
       
    46                 <f>
       
    47                     <xsl:value-of select="$n gt $a"/>
       
    48                 </f>
       
    49                 <f>
       
    50                     <xsl:value-of select="$n ge $a"/>
       
    51                 </f>
       
    52             </x>
       
    53             <x>
       
    54                 <t>
       
    55                     <xsl:value-of select="$s = $t"/>
       
    56                 </t>
       
    57                 <t>
       
    58                     <xsl:value-of select="$s != $t"/>
       
    59                 </t>
       
    60                 <t>
       
    61                     <xsl:value-of select="$s &lt; $t"/>
       
    62                 </t>
       
    63                 <t>
       
    64                     <xsl:value-of select="$s &lt;= $t"/>
       
    65                 </t>
       
    66                 <f>
       
    67                     <xsl:value-of select="$s &gt; $t"/>
       
    68                 </f>
       
    69                 <t>
       
    70                     <xsl:value-of select="$s &gt;= $t"/>
       
    71                 </t>
       
    72             </x>
       
    73             <x>
       
    74                 <t>
       
    75                     <xsl:value-of select="$t = $s"/>
       
    76                 </t>
       
    77                 <t>
       
    78                     <xsl:value-of select="$t != $s"/>
       
    79                 </t>
       
    80                 <f>
       
    81                     <xsl:value-of select="$t &lt; $s"/>
       
    82                 </f>
       
    83                 <t>
       
    84                     <xsl:value-of select="$t &lt;= $s"/>
       
    85                 </t>
       
    86                 <t>
       
    87                     <xsl:value-of select="$t &gt; $s"/>
       
    88                 </t>
       
    89                 <t>
       
    90                     <xsl:value-of select="$t &gt;= $s"/>
       
    91                 </t>
       
    92             </x>
       
    93 
       
    94 
       
    95         </z>
       
    96     </xsl:template>
       
    97 </xsl:stylesheet>