Froze Release11.2 #177
@@ -363,16 +363,7 @@
|
|||||||
<a href="#" onClick="return false;"
|
<a href="#" onClick="return false;"
|
||||||
class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:lang()</code></a>
|
class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:lang()</code></a>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
The lang function returns true or false depending on whether the language of the context
|
The lang function returns true or false depending on whether the language of the context node as specified by xml:lang attributes is the same as or is a sublanguage of the language specified by the argument string. The language of the context node is determined by the value of the xml:lang attribute on the context node, or, if the context node has no xml:lang attribute, by the value of the xml:lang attribute on the nearest ancestor of the context node that has an xml:lang attribute. If there is no such attribute, then lang returns false. If there is such an attribute, then lang returns true if the attribute value is equal to the argument ignoring case, or if there is some suffix starting with - such that the attribute value is equal to the argument ignoring that suffix of the attribute value and ignoring case. <br>
|
||||||
node as specified by xml:lang attributes is the same as or is a sublanguage of the
|
|
||||||
language specified by the argument string. The language of the context node is
|
|
||||||
determined by the value of the xml:lang attribute on the context node, or, if the
|
|
||||||
context node has no xml:lang attribute, by the value of the xml:lang attribute on the
|
|
||||||
nearest ancestor of the context node that has an xml:lang attribute. If there is no such
|
|
||||||
attribute, then lang returns false. If there is such an attribute, then lang returns
|
|
||||||
true if the attribute value is equal to the argument ignoring case, or if there is some
|
|
||||||
suffix starting with - such that the attribute value is equal to the argument ignoring
|
|
||||||
that suffix of the attribute value and ignoring case. <br>
|
|
||||||
<b>Arguments:</b>
|
<b>Arguments:</b>
|
||||||
<table class="table-doc">
|
<table class="table-doc">
|
||||||
<tr>
|
<tr>
|
||||||
@@ -942,16 +933,10 @@
|
|||||||
<div class="content">
|
<div class="content">
|
||||||
The number function converts its argument to a number as follows:
|
The number function converts its argument to a number as follows:
|
||||||
<ul>
|
<ul>
|
||||||
<li>a string that consists of optional whitespace followed by an optional minus sign
|
<li>a string that consists of optional whitespace followed by an optional minus sign followed by a Number followed by whitespace is converted to the IEEE 754 number that is nearest (according to the IEEE 754 round-to-nearest rule) to the mathematical value represented by the string; any other string is converted to NaN</li>
|
||||||
followed by a Number followed by whitespace is converted to the IEEE 754 number
|
|
||||||
that is nearest (according to the IEEE 754 round-to-nearest rule) to the
|
|
||||||
mathematical value represented by the string; any other string is converted to
|
|
||||||
NaN</li>
|
|
||||||
<li>boolean true is converted to 1; boolean false is converted to 0</li>
|
<li>boolean true is converted to 1; boolean false is converted to 0</li>
|
||||||
<li>a node-set is first converted to a string as if by a call to the string function
|
<li>a node-set is first converted to a string as if by a call to the string function and then converted in the same way as a string argument</li>
|
||||||
and then converted in the same way as a string argument</li>
|
<li>an object of a type other than the four basic types is converted to a number in a way that is dependent on that type</li>
|
||||||
<li>an object of a type other than the four basic types is converted to a number in
|
|
||||||
a way that is dependent on that type</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<b>Arguments:</b>
|
<b>Arguments:</b>
|
||||||
@@ -985,8 +970,7 @@
|
|||||||
<a href="#" onClick="return false;"
|
<a href="#" onClick="return false;"
|
||||||
class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:sum()</code></a>
|
class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:sum()</code></a>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
The sum function returns the sum, for each node in the argument node-set, of the result
|
The sum function returns the sum, for each node in the argument node-set, of the result of converting the string-values of the node to a number.<br>
|
||||||
of converting the string-values of the node to a number.<br>
|
|
||||||
|
|
||||||
<b>Arguments:</b>
|
<b>Arguments:</b>
|
||||||
<table class="table-doc">
|
<table class="table-doc">
|
||||||
@@ -1015,8 +999,7 @@
|
|||||||
<a href="#" onClick="return false;"
|
<a href="#" onClick="return false;"
|
||||||
class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:floor()</code></a>
|
class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:floor()</code></a>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
The floor function returns the largest (closest to positive infinity) number that is not
|
The floor function returns the largest (closest to positive infinity) number that is not greater than the argument and that is an integer.<br>
|
||||||
greater than the argument and that is an integer.<br>
|
|
||||||
|
|
||||||
<b>Arguments:</b>
|
<b>Arguments:</b>
|
||||||
<table class="table-doc">
|
<table class="table-doc">
|
||||||
@@ -1053,8 +1036,7 @@
|
|||||||
<a href="#" onClick="return false;"
|
<a href="#" onClick="return false;"
|
||||||
class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:ceiling()</code></a>
|
class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:ceiling()</code></a>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
The ceiling function returns the smallest (closest to negative infinity) number that is
|
The ceiling function returns the smallest (closest to negative infinity) number that is not less than the argument and that is an integer.<br>
|
||||||
not less than the argument and that is an integer.<br>
|
|
||||||
|
|
||||||
<b>Arguments:</b>
|
<b>Arguments:</b>
|
||||||
<table class="table-doc">
|
<table class="table-doc">
|
||||||
@@ -1092,18 +1074,10 @@
|
|||||||
<a href="#" onClick="return false;"
|
<a href="#" onClick="return false;"
|
||||||
class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:round()</code></a>
|
class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:round()</code></a>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
The round function returns the number that is closest to the argument and that is an
|
The round function returns the number that is closest to the argument and that is an integer. If there are two such numbers, then the one that is closest to positive infinity is returned. If the argument is NaN, then NaN is returned. If the argument is positive infinity, then positive infinity is returned. If the argument is negative infinity, then negative infinity is returned. If the argument is positive zero, then positive zero is returned. If the argument is negative zero, then negative zero is returned. If the argument is less than zero, but greater than or equal to -0.5, then negative zero is returned.
|
||||||
integer. If there are two such numbers, then the one that is closest to positive
|
|
||||||
infinity is returned. If the argument is NaN, then NaN is returned. If the argument is
|
|
||||||
positive infinity, then positive infinity is returned. If the argument is negative
|
|
||||||
infinity, then negative infinity is returned. If the argument is positive zero, then
|
|
||||||
positive zero is returned. If the argument is negative zero, then negative zero is
|
|
||||||
returned. If the argument is less than zero, but greater than or equal to -0.5, then
|
|
||||||
negative zero is returned.
|
|
||||||
|
|
||||||
<h4>NOTE</h4>
|
<h4>NOTE</h4>
|
||||||
For these last two cases, the result of calling the round function is not the same as
|
For these last two cases, the result of calling the round function is not the same as the result of adding 0.5 and then calling the floor function.<br>
|
||||||
the result of adding 0.5 and then calling the floor function.<br>
|
|
||||||
|
|
||||||
<b>Arguments:</b>
|
<b>Arguments:</b>
|
||||||
<table class="table-doc">
|
<table class="table-doc">
|
||||||
|
|||||||
Reference in New Issue
Block a user