home contribute faq download

FunctX XSLT Functions

Sequences

Google
Webdatypic.com

Checking Contents

fn:countThe number of items in a sequence
functx:is-node-in-sequenceWhether an XML node is in a sequence, based on node identity
functx:is-node-in-sequence-deep-equalWhether an XML node is in a sequence, based on contents and attributes
functx:is-node-among-descendantsWhether an XML node is among the descendants of a sequence, based on node identity
functx:is-node-among-descendants-deep-equalWhether an XML node is among the descendants of a sequence, based on contents and attributes
functx:is-value-in-sequenceWhether an atomic value appears in a sequence

Positional

fn:positionThe current context position
fn:lastThe size of the current context
fn:index-ofThe position(s) of an atomic value within a sequence
functx:index-of-nodeThe position of a node in a sequence, based on node identity
functx:index-of-deep-equal-nodeThe position of a node in a sequence, based on contents and attributes
fn:currentReturn the current item

Comparing

functx:sequence-deep-equalWhether two sequences have the same XML node content and/or values
functx:sequence-node-equalWhether two sequences contain the same XML nodes, in the same order
functx:sequence-node-equal-any-orderWhether two sequences contain the same XML nodes, regardless of order

Sorting and Grouping

functx:sortSorts a sequence of values or nodes
functx:sort-as-numericSorts a sequence of numeric values or nodes
functx:sort-case-insensitiveSorts a sequence of values or nodes regardless of capitalization
functx:sort-document-orderSorts a sequence of nodes in document order
fn:unorderedIndicates that order is not significant, to improve performance
fn:current-groupThe current group
fn:current-grouping-keyThe current grouping key

Distinct Values

fn:distinct-valuesThe distinct atomic values in a sequence
functx:distinct-deepThe XML nodes with distinct values, taking into account attributes and descendants
functx:distinct-nodesThe distinct XML nodes in a sequence (by node identity)
functx:non-distinct-valuesReturns any values that appear more than once in a sequence
functx:are-distinct-valuesWhether all the values in a sequence are distinct

Manipulating

fn:removeRemoves an item from a sequence
fn:reverseReverses the order of a sequence
fn:subsequenceA portion of a sequence based on a starting point and length
fn:insert-beforeInserts a new item into a sequence

Combining

functx:value-unionThe union of two sequences of values
functx:value-intersectThe intersection of two sequences of values
functx:value-exceptThe values in one sequence that aren't in another sequence

Datypic XSLT Services

Recommended Reading:

XQuery