Boolean Functions : Boolean Functions  « XSLT stylesheet « XML Tutorial






boolean() takes an object as its argument and returns a Boolean value. 
    If the argument is a number, true is returned if the number is not zero or NaN. 
    If the argument is a node-set, true is returned if the node-set is not empty. 
    If the argument is a string, true is returned if the string is not empty. 
false() takes no argument and returns the Boolean value false 
lang() takes a string argument. 
       Returns true if the language of the node is the language indicated by the string argument or one of its sublanguages. 
not() takes a Boolean expression as its argument
true() has no argument and returns the Boolean value true








5.38.Boolean Functions
5.38.1.Boolean Functions
5.38.2.Use strings as arguments of boolean() function.
5.38.3.compares "0" as a string and as a number
5.38.4.uses node-sets as arguments for boolean() function
5.38.5.The not function returns true if its argument is false, and false otherwise.
5.38.6.Functions true() and false() are useful, when some conditions are tested during programming