http://www.zorba-xquery.com/modules/excel/information ZC

Module Description
Before using any of the functions below please remember to import the module namespace:
import module namespace excel-information = "http://www.zorba-xquery.com/modules/excel/information";

This is a library module offering the same set of functions defined by Microsoft Excel, under Information Functions.

Author:

Sorin Nasoi

XQuery version and encoding for this module:

xquery version "3.0" encoding "utf-8";

Module Resources
  • the XQuery module can be found here.
Module Dependencies

Imported modules:

Related Documentation

For more details please also see:

Namespaces
excel-err http://www.zorba-xquery.com/modules/excel/errors
excel-information http://www.zorba-xquery.com/modules/excel/information
excel-math http://www.zorba-xquery.com/modules/excel/math
ver http://www.zorba-xquery.com/options/versioning
Function Summary
is-blank ( $value as xs:anyAtomicType? ) as xs:boolean
Test if the passed argument is empty of not.
is-even ( $value as xs:anyAtomicType? ) as xs:boolean
Test is a number is even.
is-odd ( $value as xs:anyAtomicType? ) as xs:boolean
Test is a number is odd.
islogical ( $value as xs:anyAtomicType? ) as xs:boolean
Tests if the passed $value is a logical value.
isnumber ( $value as xs:anyAtomicType? ) as xs:boolean
Tests if the passed $value is a number.
istext ( $value as xs:anyAtomicType? ) as xs:boolean
Tests if the passed $value is a string.
n ( $value as xs:anyAtomicType? ) as xs:anyAtomicType
Converts a $value to a number.
na ( ) as xs:anyAtomicType
Raises the error value #N/A.
Functions
is-blank back to 'Function Summary'
declare function excel-information:is-blank (
            $value as xs:anyAtomicType? 
 ) as xs:boolean

Test if the passed argument is empty of not.

Parameters:
  • $value the value.
Returns:
  • If the value of $arg is the empty sequence, the function returns true, otherwise the function returns false.
See:

is-even back to 'Function Summary'
declare function excel-information:is-even (
            $value as xs:anyAtomicType? 
 ) as xs:boolean

Test is a number is even.

Parameters:
  • $value the value.
Returns:
  • TRUE if number is even, FALSE if number is odd.
Errors:
  • excel-err:Value if provided value is not a number.
See:

is-odd back to 'Function Summary'
declare function excel-information:is-odd (
            $value as xs:anyAtomicType? 
 ) as xs:boolean

Test is a number is odd.

Parameters:
  • $value the value.
Returns:
  • TRUE if number is odd, FALSE if number is even.
Errors:
  • excel-err:Value if provided value is not a number.
See:

islogical back to 'Function Summary'
declare function excel-information:islogical (
            $value as xs:anyAtomicType? 
 ) as xs:boolean

Tests if the passed $value is a logical value.

Parameters:
  • $value the value.
Returns:
  • TRUE if $value refers to a logical value.
See:

isnumber back to 'Function Summary'
declare function excel-information:isnumber (
            $value as xs:anyAtomicType? 
 ) as xs:boolean

Tests if the passed $value is a number.

Parameters:
  • $value the value.
Returns:
  • TRUE if $value refers to a number.
See:

istext back to 'Function Summary'
declare function excel-information:istext (
            $value as xs:anyAtomicType? 
 ) as xs:boolean

Tests if the passed $value is a string.

Parameters:
  • $value the value.
Returns:
  • TRUE if $value refers to text.
See:

n back to 'Function Summary'
declare function excel-information:n (
            $value as xs:anyAtomicType? 
 ) as xs:anyAtomicType

Converts a $value to a number.

Parameters:
  • $value the value.
Returns:
  • A $value converted to a number.
See:

na back to 'Function Summary'
declare function excel-information:na (
 ) as xs:anyAtomicType

Raises the error value #N/A.

Returns:
  • The error value #N/A. #N/A is the error value that means "no value is available."
Errors:
  • excel-err:NA the purpose of this function is to raise this error
See:

blog comments powered by Disqus