4Suite™ API Documentation

# ► Module Ft.Xml.XPath.CoreFunctions

The implementation of the core functions from XPath 1.0.
Copyright 2005 Fourthought, Inc. (USA).
Detailed license and copyright information: http://4suite.org/COPYRIGHT
Project home, documentation, distributions: http://4suite.org/

Functions: Boolean, Ceiling, Concat, Contains, Count, False, Floor, Id, Lang, Last, LocalName, Name, NamespaceUri, Normalize, Not, Number, Position, Round, StartsWith, String, StringLength, Substring, SubstringAfter, SubstringBefore, Sum, Translate, True |  |  |  | Fields: CoreFunctions, EMPTY_NAMESPACE, NAMESPACE_NODE, XML_NAMESPACE

## Functions

Boolean(context, object_)
Function: <boolean> boolean(<object>)
Ceiling(context, object_)
Function: <number> ceiling(<number>)
Concat(context, *args)
Function: <string> concat(<string>, <string>, ...)
Contains(context, outer, inner)
Function: <string> contains(<string>, <string>)
Count(context, nodeSet)
Function: <number> count(<node-set>)
False(context)
Function: <boolean> false()
Floor(context, object_)
Function: <number> floor(<number>)
Id(context, object_)
Function: <node-set> id(<object>)
Lang(context, lang)
Function: <boolean> lang(<string>)
Last(context)
Function: <number> last()
LocalName(context, nodeSet=None)
Function: <string> local-name(<node-set>?)
Name(context, nodeSet=None)
Function: <string> name(<node-set>?)
NamespaceUri(context, nodeSet=None)
Function: <string> namespace-uri(<node-set>?)
Normalize(context, st=None)
Function: <string> normalize-space(<string>?)
Not(context, object_)
Function: <boolean> not(<boolean>)
Number(context, object_=None)
Function: <number> number(<object>?)
Position(context)
Function: <number> position()
Round(context, object_)
Function: <number> round(<number>)
StartsWith(context, outer, inner)
Function: <string> starts-with(<string>, <string>)
String(context, object_=None)
Function: <string> string(<object>?)
StringLength(context, st=None)
Function: <number> string-length(<string>?)
Substring(context, st, start, length=None)
Function: <string> substring(<string>, <number>, <number>?)
SubstringAfter(context, outer, inner)
Function: <string> substring-after(<string>, <string>)
SubstringBefore(context, outer, inner)
Function: <string> substring-before(<string>, <string>)
Sum(context, nodeSet)
Function: <number> sum(<node-set>)
Translate(context, source, fromChars, toChars)
Function: <string> translate(<string>, <string>, <string>)
True(context)
Function: <boolean> true()

## Fields

CoreFunctions = {(None, 'boolean'): <function Boolean>, (None, 'ceiling'): <function Ceiling>, (None, 'concat'): <function Concat>, (None, 'contains'): <function Contains>, (None, 'count'): <function Count>, (None, 'false'): <function False>, (None, 'floor'): <function Floor>, (None, 'id'): <function Id>, (None, 'lang'): <function Lang>, (None, 'last'): <function Last>, ...}
EMPTY_NAMESPACE = None
NAMESPACE_NODE = 13
XML_NAMESPACE = u'http://www.w3.org/XML/1998/namespace'