Konstruktorfunktionen
Die folgenden Konstruktorfunktionen für eingebaute Datentypen sind in XQuery verfügbar. Dabei ist zu beachten, dass die Semantik der Konstruktorfunktionen mit den entsprechenden cast as-Ausdrücken identisch sind, d. h., xs:TYP(xdt:anyAtomicType) korrespondiert zu dem Ausdruck cast as xs:TYP(xdt:anyAtomicType).
xs:string(
$arg as xdt:anyAtomicType) as xs:string
xs:boolean(
$arg as xdt:anyAtomicType) as xs:boolean
xs:decimal(
$arg as xdt:anyAtomicType) as xs:decimal
xs:float(
$arg as xdt:anyAtomicType) as xs:float
xs:double(
$arg as xdt:anyAtomicType) as xs:double
xs:duration(
$arg as xdt:anyAtomicType) as xs:duration
xs:dateTime(
$arg as xdt:anyAtomicType) as (xs:dateTime, xdt:dayTimeDuration)
xs:time(
$arg as xdt:anyAtomicType) as (xs:time, xdt:dayTimeDuration)
xs:date(
$arg as xdt:anyAtomicType) as (xs:date, xdt:dayTimeDuration)
xs:gYearMonth(
$arg as xdt:anyAtomicType) as xs:gYearMonth
xs:gYear(
$arg as xdt:anyAtomicType) as xs:gYear
xs:gMonthDay(
$arg as xdt:anyAtomicType) as xs:gMonthDay
xs:gDay(
$arg as xdt:anyAtomicType) as xs:gDay
xs:gMonth(
$arg as xdt:anyAtomicType) as xs:gMonth
xs:hexBinary(
$arg as xdt:anyAtomicType) as xs:hexBinary
xs:base64Binary(
$arg as xdt:anyAtomicType) as xs:base64Binary
xs:anyURI(
$arg as xdt:anyAtomicType) as xs:anyURI
xs:QName(
$arg as xdt:anyAtomicType) as xs:QName
xs:normalizedString(
$arg as xdt:anyAtomicType) as xs:normalizedString
xs:token(
$arg as xdt:anyAtomicType) as xs:token
xs:language(
$arg as xdt:anyAtomicType) as xs:language
xs:NMTOKEN(
$arg as xdt:anyAtomicType) as xs:NMTOKEN
xs:Name(
$arg as xdt:anyAtomicType) as xs:Name
xs:NCName(
$arg as xdt:anyAtomicType) as xs:NCName
xs:ID
$arg as xdt:anyAtomicType) as xs:ID
xs:IDREF(
$arg as xdt:anyAtomicType) as xs:IDREF
xs:ENTITY(
$arg as xdt:anyAtomicType) as xs:ENTITY
xs:integer(
$arg as xdt:anyAtomicType) as xs:integer
xs:nonPositiveInteger(
$arg as xdt:anyAtomicType) as xs:nonPositiveInteger
xs:negativeInteger(
$arg as xdt:anyAtomicType) as xs:negativeInteger
xs:long(
$arg as xdt:anyAtomicType) as xs:long
xs:int(
$arg as xdt:anyAtomicType) as xs:int
xs:short(
$arg as xdt:anyAtomicType) as xs:short
xs:byte(
$arg as xdt:anyAtomicType) as xs:byte
xs:nonNegativeInteger(
$arg as xdt:anyAtomicType) as xs:nonNegativeInteger
xs:unsignedLong(
$arg as xdt:anyAtomicType) as xs:unsignedLong
xs:unsignedInt(
$arg as xdt:anyAtomicType) as xs:unsignedInt
xs:unsignedShort(
$arg as xdt:anyAtomicType) as xs:unsignedShort
xs:unsignedByte(
$arg as xdt:anyAtomicType) as xs:unsignedByte
xs:positiveInteger(
$arg as xdt:anyAtomicType) as xs:positiveInteger
xdt:yearMonthDuration(
$arg as xdt:anyAtomicType) as xdt:yearMonthDuration
xdt:dayTimeDuration(
$arg as xdt:anyAtomicType) as xdt:dayTimeDuration
xdt:untypedAtomic(
$arg as xdt:anyAtomicType) as xdt:untypedAtomic
Quelle: "XQuery – Grundlagen und fortgeschrittene Methoden", dpunkt-Verlag, Heidelberg (2004)
<< zurück | vor >> |