4Suite API Documentation

Module Ft.Xml.XUpdate

######################################################################## # $Header: /var/local/cvsroot/4Suite/Ft/Xml/XUpdate.py,v 1.57 2005/03/22 09:02:20 mbrown Exp $
Classes:
Functions:
Fields:

Classes

class Processor

Methods

__init__(self, reader=None)
evaluateExpression(self, context, expression)
execute(self, node, xupdate, variables=None, processorNss=None)
output(self)
#needed by CopyNode
parseAVT(self, avt)
popResult(self)
pushDomResult(self, ownerDocument)
visit(self, context, node, preserveSpace)

Methods

fromSrc = parse(self, inputSource)

Methods inherited from class Ft.Xml.Domlette.NonvalidatingReaderBase

Methods inherited from class Ft.Xml.Domlette._Reader



class XUpdateException(Ft.FtException)

Methods

__init__(self, errorCode, *args, **kwargs)

Methods inherited from class Ft.FtException

Methods inherited from class exceptions.Exception

__getitem__

Fields

NO_TEST = 12

Functions

ApplyXUpdate(doc, xup)

Fields

XUPDATE_NS = 'http://www.xmldb.org/xupdate'
g_errorMessages = {1: 'Syntax error in expression %(expr)r: %(err)s', 2: 'Unrecognized instruction in XUpdate namespace: %(name)r', 10: 'Missing required version attribute', 11: 'Missing required select attribute', 12: 'Missing required "test" attribute', 13: 'select expression "%(expr)s" must evaluate to a non-empty node-set', 14: 'XUpdate version %(version)s unsupported by this implementation', 100: 'Invalid DOM node %(node)r', 101: 'Unknown node type %(nodetype)r'}