Module

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()"

Public Methods
boolean UNTESTED
ceiling
compare_language
concat UNTESTED
contains Fixed by Mike Stok
context=
count
false UNTESTED
floor
get_namespace Helper method.
id Since REXML is non-validating, this method is not implemented as it requires a DTD
lang UNTESTED
last
local_name UNTESTED
method_missing
name
namespace_context
namespace_context=
namespace_uri
normalize_space UNTESTED
not UNTESTED
number a string that consists of optional whitespace followed by an optional minus sign followed by a Number followed by whitespace is converted to the IEEE 754 number that is nearest (according to the IEEE 754 round-to-nearest rule) to the mathematical value represented by the string; any other string is converted to NaN
position
processing_instruction
round
starts_with Fixed by Mike Stok
string A node-set is converted to a string by returning the string-value of the node in the node-set that is first in document order. If the node-set is empty, an empty string is returned.
string_length UNTESTED
string_value
substring Take equal portions of Mike Stok and Sean Russell; mix vigorously, and pour into a tall, chilled glass. Serves 10,000.
substring_after Kouhei fixed this too
substring_before Kouhei fixed this
sum
text
translate This is entirely Mike Stok’s beast
true UNTESTED
variables
variables=
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.