4Suite API Documentation

Module Ft.Xml.XPath.BuiltInExtFunctions

######################################################################## # $Header: /var/local/cvsroot/4Suite/Ft/Xml/XPath/BuiltInExtFunctions.py,v 1.65 2005/02/27 04:17:36 jkloth Exp $
Functions:
Fields:

Functions

BaseUri(context, arg=None)
BinPath(context)
Decode(context, object, encoding)
Encode(context, object, encoding)
EndsWith(context, outer, inner)
EnvVar(context, var)
EscapeXml(context, text)
GenerateUuid(context)
If(context, cond, v1, v2=None)
ImportString(context, object)
# why does this exist?
Indent(context, text, levels, indentstring=None)
Join(context, nodeset, delim=' ')
Match(context, pattern, arg=None)
NormalizeEol(context, text)
OsPath2Uri(context, path)
ParseDate(context, date, format=None)
ParseXml(context, src, parameters=None)
PytimeToExslt(context, t=None)
Random(context, max=None, forceInt=0)
Range(context, lo, hi)
Replace(context, old, new, arg=None)
ResolvePath(context, base, rel)
ResolveUrl(context, base, rel)
ShaHash(context, text)
SharePath(context)
Spawnv(context, command, *args)
StrFTime(context, format, date=None)
System(context, command)
Uri2OsPath(context, uri)
Version(context)
Wrap(context, text, width)

Fields

ExtFunctions = {('http://xmlns.4suite.org/ext', 'base-uri'): <function BaseUri>, ('http://xmlns.4suite.org/ext', 'bin-path'): <function BinPath>, ('http://xmlns.4suite.org/ext', 'cos'): <function Cos>, ('http://xmlns.4suite.org/ext', 'decode'): <function Decode>, ('http://xmlns.4suite.org/ext', 'degrees-to-rads'): <function DegreesToRads>, ('http://xmlns.4suite.org/ext', 'encode'): <function Encode>, ('http://xmlns.4suite.org/ext', 'ends-with'): <function EndsWith>, ('http://xmlns.4suite.org/ext', 'escape-xml'): <function EscapeXml>, ('http://xmlns.4suite.org/ext', 'fact'): <function Fact>, ('http://xmlns.4suite.org/ext', 'generate-uuid'): <function GenerateUuid>, ...}
ExtNamespaces = {'http://xmlns.4suite.org/ext': 'f'}
FT_EXT_NAMESPACE = 'http://xmlns.4suite.org/ext'
InsecureExtFunctions = {('http://xmlns.4suite.org/ext', 'env-var'): <function EnvVar>, ('http://xmlns.4suite.org/ext', 'spawnv'): <function Spawnv>, ('http://xmlns.4suite.org/ext', 'system'): <function System>}