class Functions


If you add a method, keep in mind two things: (1) the first argument will always be a list of nodes from which to filter. In the case of context methods (such as position), the function should return an array with a value for each child in the array. (2) all method calls from XML will have "-" replaced with "_". Therefore, in XML, "local-name()" is identical (and actually becomes) "local_name()"

Methods


Methods

Functions

Arguments

text
nodes

Functions

Arguments

last
elements

Functions

Arguments

position
nodes

Functions

Arguments

count
nodes

Functions

Arguments

id
nodes

Since REXML is non-validating, this method is not implemented as it requires a DTD

Functions

Arguments

local_name
nodes

NOT TESTED

Functions

Arguments

namespace_uri
nodes

NOT TESTED

Functions

Arguments

name
nodes

Functions

Arguments

string
nodes
object

UNTESTED

Functions

Arguments

concat
nodes
objects

UNTESTED

Functions

Arguments

starts_with
nodes
string
test

UNTESTED

Functions

Arguments

contains
nodes
string
test

UNTESTED

Functions

Arguments

substring_before
nodes
string
test

UNTESTED

Functions

Arguments

substring_after
nodes
string
test

UNTESTED

Functions

Arguments

substring
nodes
string
start
length<0>

UNTESTED

Functions

Arguments

string_length
nodes
string

UNTESTED

Functions

Arguments

normalize_space
nodes
string<nil>

UNTESTED

Functions

Arguments

translate
nodes
string
tr1
tr2

UNTESTED

Functions

Arguments

boolean
nodes
object<nil>

UNTESTED

Functions

Arguments

not
nodes
object

UNTESTED

Functions

Arguments

true
nodes

UNTESTED

Functions

Arguments

false
nodes

UNTESTED

Functions

Arguments

lang
nodes
language

UNTESTED

Functions

Arguments

compare_language lang1
lang2

Functions

Arguments

number
nodes
object<nil>

Functions

Arguments

sum
nodes

Functions

Arguments

floor
nodes
number

Functions

Arguments

ceiling
nodes
number

Functions

Arguments

round
nodes
number