You are on page 1of 4

These functions are supported by the BW engine.

Not all are currently supported by the


mapper GUI and so you may see mapper warnings (i.e. "No such function."), but they
should work at runtime.
These are thoroughly documented in the specs: http://www.w3.org/TR/xpath and
http://www.w3.org/TR/xquery-operators/
Function and arguments
abs($arg as numeric) as numeric

fn:adjust-date-to-timezone($arg as
xs:date?) as xs:date?

adjust-dateTime-to-timezone()
adjust-time-to-timezone()
avg()
boolean()
ceiling()
codepoints-to-string()
compare()
concat()
contains()

Summary
Returns the largest
(closest to
positive infinity)
number with no
fractional part
that is not greater
than the value of
$arg.
Adjusts an xs:date
value to a specific
timezone, or to no
timezone at all. If
$timezone is the
empty sequence,
returns an xs:date
without a timezone.
Otherwise, returns
an xs:date with a
timezone. For
purposes of
timezone
adjustment, an
xs:date is treated
as an xs:dateTime
with time 00:00:00.
summary
summary
summary
summary
summary
summary
summary
summary
summary

Examples
fn:abs(10.5) returns 10.5
fn:abs(-10.5) returns 10.5

fn:adjust-date-totimezone(xs:date("2002-03-07"))
returns 2002-03-07-05:00.
fn:adjust-date-totimezone(xs:date("2002-03-0707:00"), $tz) returns 2002-03-0610:00. $arg is converted to the
xs:dateTime "2002-03-07T00:00:0007:00". This is adjusted to the
given timezone, giving "2002-0306T21:00:00-10:00

example
example
example
example
example
example
example
example
example

context-item()
count()
current()
current-date()
current-dateTime()
current-group()
current-grouping-key()
current-time()
data()
doc()
document()
doc-available()
element-available()
empty()
empty-sequence()
ends-with()
escape-uri()
exists()
expanded-QName()
false()
floor()
format-date()
format-dateTime()
format-number()
format-time()
function-available()
generate-id()
id()
implicit-timezone()
key()
lang()
last()
local-name()
local-name-from-QName()
lower-case()
max()
min()
name()
namespace-uri()
namespace-uri-from-QName()

summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary

example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example

normalize-space()
not()
not3()
number()
position()
QName()
remove()
resolve-QName()
root()
round()
starts-with()
string()
string-join()
string-length()
string-pad()
string-to-codepoints()
substring()
substring-after()
substring-before()
sum()
subtract-dateTimes-yieldingdayTimeDuration()
subtract-dateTimes-yieldingyearMonthDuration()
system-property()
trace()
translate()
true()
unparsed-entity-uri()
upper-case()
day-from-date()
day-from-dateTime()
days-from-duration()
hours-from-duration()
hours-from-dateTime()
hours-from-time()
minutes-from-time()
minutes-from-dateTime()
minutes-from-duration()
month-from-date()

summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary

example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example

summary

example

summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary

example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example

month-from-dateTime()
months-from-duration()
seconds-from-dateTime()
seconds-from-duration()
seconds-from-time()
timezone-from-date()
timezone-from-dateTime()
timezone-from-time()
year-from-date()
year-from-dateTime()
years-from-duration()
get-day-from-date()
get-day-from-dateTime()
get-days-from-dayTimeDuration()
get-hours-from-dayTimeDuration()
get-hours-from-dateTime()
get-hours-from-time()
get-minutes-from-time()
get-minutes-from-dateTime()
get-minutes-from-dayTimeDuration()
get-month-from-date()
get-month-from-dateTime()
get-months-from-yearMonthDuration()
get-namespace-from-QName()
get-seconds-from-dateTime()
get-seconds-from-dayTimeDuration()
get-seconds-from-time()
get-timezone-from-date()
get-timezone-from-dateTime()
get-timezone-from-time()
get-year-from-date()
get-year-from-dateTime()
get-years-from-yearMonthDuration()

summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary
summary

example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example
example

You might also like