|
|
fn:current-dateTime( ) as xs:dateTime
|
|
 |
Summary:
Returns the current dateTime value (with timezone) from the dynamic context.
(See
Section C.2 Dynamic
Context Components[XP].) This is an
xs:dateTime that is current at some time during the
evaluation of a query or transformation in which
fn:current-dateTime() is executed. This function is
*stable*. The precise instant during the query or transformation
represented by the value of fn:current-dateTime() is
*implementation dependent*.
|
Usage Notes:
fn:current-dateTime() returns an xs:dateTime
corresponding to the current date and time. For example, an invocation
of fn:current-dateTime() might return
2004-05-12T18:17:15.125Z corresponding to the current
time on May 12, 2004 in timezone Z.
|
Example:
fn:current-dateTime()
=> 2006-05-25T18:21:24.454-07:00
|
|
|
|
fn:implicit-timezone( ) as xs:dayTimeDuration
|
|
 |
Summary:
|
Example:
fn:implicit-timezone()
=> -PT7H
|
|
|
|
|
 |
Summary:
|
Example:
let $x := (10, 20, 30, 40, 50)
return
$x[last()]
=> 50, which is the last item in the sequence
|
|
|
|
fn:position( ) as xs:integer
|
|
 |
Summary:
|
Example:
let $x := (10, 20, 30, 40, 50)
return
$x[position() eq 2]
=> 20, which is in the second position in the sequence
|
|
|
|
fn:static-base-uri( ) as xs:anyURI?
|
|
 |
Summary:
Returns the value of the base-uri property from the static context. If the
base-uri property is undefined, the empty sequence is returned. Components of
the static context are discussed in
Section C.1 Static Context Components[XP].
|
|
|