xs:long

Construct a long value from an item value.

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:


Syntax

xs:long(item $value) => long

Description

This is a constructor function that takes an item value as argument and returns a value of type xs:long. If the argument is a literal, then the literal must be a valid lexical form of its type.

As specified in the respective section of the W3C recommendation XML Schema Part 2: Datatypes, xs:byte is a subtype derived from xs:integer. Please refer to the section Derived built-in data types in the Tamino XML Schema User Guide for information about the supported range of values.

Argument

$value

item value

Example

  • The following queries construct valid values of type xs:long:

    xs:long(9223372036854775807)
    xs:long(-23)
  • The following query results in an error, since the specified numerical value is out of range:

    xs:long(9223372036854775808)