home contribute faq download

FunctX XSLT Functions

Numbers

Google
Webdatypic.com

Formatting

fn:format-numberFormat a number
functx:ordinal-number-enReformats a number as an ordinal number, e.g. 1st, 2nd, 3rd.
functx:pad-integer-to-lengthPads an integer to a desired length by adding leading zeros
fn:numberConverts a value or a node to a number

Comparing

fn:maxThe maximum of a sequence of values
fn:minThe minimum of a sequence of values
functx:is-a-numberWhether a value is numeric

Calculations

fn:absThe absolute value
fn:avgThe average of a sequence of values
functx:avg-empty-is-zeroThe average, counting "empty" values as zero
fn:sumThe sum of values in a sequence

Rounding

fn:ceilingRounds up to the next highest integer
fn:floorRounds down to the next lowest integer
fn:roundRounds a numeric value
fn:round-half-to-evenRounds a numeric value, rounding even halfs to the nearest even number

Datypic XSLT Services

Recommended Reading:

XQuery