4Suite API Documentation

Module Ft.Xml.Xslt.ExtendedProcessingElements

Extended versions of XSLT elements for debugging and execution tracing
These subclasses typically just override the .instantiate method of the
original class, doing something before calling the original method, like
writing debug or trace output and maintaining whatever state info is
necessary in the process.

Copyright 2005 Fourthought, Inc. (USA).
Detailed license and copyright information: http://4suite.org/COPYRIGHT
Project home, documentation, distributions: http://4suite.org/
Classes:
Functions:
Globals:

Classes

class BaseElement
An XSLT element superclass that supports debugging and execution tracing.
An existing XSLT element can be extended by subclassing this and the
original element class. In order to make use of the extended class, it
should be referenced in Ft.Xml.Xslt.StylesheetHandler._ELEMENT_MAPPING,
and additional instance variables necessary should be set as desired.

Methods

doAll(self, processor, method, args, argNames, name, _timer=<built-in function time>)
This method, specific to extended processign elements, attempts to perform all extended processing. By default, it looks at the given processor's instance variables to determine what to do; e.g., processor._4xslt_debug can trigger debug handling.
processor is the active Processor instance.

method is the instantiate method of the original element class.

args are a sequence of arguments (besides self) for the method.
argNames are the names of these arguments, for display purposes
(the names from the method signature, usually). keyword args are
not supported.

name is the display name of the original element.
class ExtendedAttributeElement(ExtendedSimpleElement, Ft.Xml.Xslt.AttributeElement.AttributeElement)

Methods

getName(self)

Methods inherited from class ExtendedSimpleElement

Methods inherited from class BaseElement

Methods inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltElement

Methods inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltNode

Methods inherited from class object

__delattr__, __getattribute__, __hash__, __reduce_ex__, __setattr__, __str__

Members inherited from class Ft.Xml.Xslt.AttributeElement.AttributeElement

Members inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltElement

Members inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltNode

Members inherited from class object

__class__
class ExtendedChooseElement(BaseElement, Ft.Xml.Xslt.ChooseElement.ChooseElement)

Methods

instantiate(self, context, processor)
Overrides: instantiate from class ChooseElement

Methods inherited from class BaseElement

Methods inherited from class Ft.Xml.Xslt.ChooseElement.ChooseElement

Methods inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltElement

Methods inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltNode

Methods inherited from class object

__delattr__, __getattribute__, __hash__, __reduce_ex__, __setattr__, __str__

Members inherited from class Ft.Xml.Xslt.ChooseElement.ChooseElement

Members inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltElement

Members inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltNode

Members inherited from class object

__class__
class ExtendedCommentElement(ExtendedSimpleElement, Ft.Xml.Xslt.CommentElement.CommentElement)

Methods

getName(self)

Methods inherited from class ExtendedSimpleElement

Methods inherited from class BaseElement

Methods inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltElement

Methods inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltNode

Methods inherited from class object

__delattr__, __getattribute__, __hash__, __reduce_ex__, __setattr__, __str__

Members inherited from class Ft.Xml.Xslt.CommentElement.CommentElement

Members inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltElement

Members inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltNode

Members inherited from class object

__class__
class ExtendedCopyElement(ExtendedSimpleElement, Ft.Xml.Xslt.CopyElement.CopyElement)

Methods

getName(self)

Methods inherited from class ExtendedSimpleElement

Methods inherited from class BaseElement

Methods inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltElement

Methods inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltNode

Methods inherited from class object

__delattr__, __getattribute__, __hash__, __reduce_ex__, __setattr__, __str__

Members inherited from class Ft.Xml.Xslt.CopyElement.CopyElement

Members inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltElement

Members inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltNode

Members inherited from class object

__class__
class ExtendedCopyOfElement(ExtendedSimpleElement, Ft.Xml.Xslt.CopyOfElement.CopyOfElement)

Methods

getName(self)

Methods inherited from class ExtendedSimpleElement

Methods inherited from class BaseElement

Methods inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltElement

Methods inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltNode

Methods inherited from class object

__delattr__, __getattribute__, __hash__, __reduce_ex__, __setattr__, __str__

Members inherited from class Ft.Xml.Xslt.CopyOfElement.CopyOfElement

Members inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltElement

Members inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltNode

Members inherited from class object

__class__
class ExtendedElementElement(ExtendedSimpleElement, Ft.Xml.Xslt.ElementElement.ElementElement)

Methods

getName(self)

Methods inherited from class ExtendedSimpleElement

Methods inherited from class BaseElement

Methods inherited from class Ft.Xml.Xslt.ElementElement.ElementElement

Methods inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltElement

Methods inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltNode

Methods inherited from class object

__delattr__, __getattribute__, __hash__, __reduce_ex__, __setattr__, __str__

Members inherited from class Ft.Xml.Xslt.ElementElement.ElementElement

Members inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltElement

Members inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltNode

Members inherited from class object

__class__
class ExtendedForEachElement(ExtendedSimpleElement, Ft.Xml.Xslt.ForEachElement.ForEachElement)

Methods

getName(self)

Methods inherited from class ExtendedSimpleElement

Methods inherited from class BaseElement

Methods inherited from class Ft.Xml.Xslt.ForEachElement.ForEachElement

Methods inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltElement

Methods inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltNode

Methods inherited from class object

__delattr__, __getattribute__, __hash__, __reduce_ex__, __setattr__, __str__

Members inherited from class Ft.Xml.Xslt.ForEachElement.ForEachElement

Members inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltElement

Members inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltNode

Members inherited from class object

__class__
class ExtendedIfElement(BaseElement, Ft.Xml.Xslt.IfElement.IfElement)

Methods

instantiate(self, context, processor)
Overrides: instantiate from class IfElement

Methods inherited from class BaseElement

Methods inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltElement

Methods inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltNode

Methods inherited from class object

__delattr__, __getattribute__, __hash__, __reduce_ex__, __setattr__, __str__

Members inherited from class Ft.Xml.Xslt.IfElement.IfElement

Members inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltElement

Members inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltNode

Members inherited from class object

__class__
class ExtendedLiteralElement(ExtendedSimpleElement, Ft.Xml.Xslt.LiteralElement.LiteralElement)

Methods

getName(self)

Methods inherited from class ExtendedSimpleElement

Methods inherited from class BaseElement

Methods inherited from class Ft.Xml.Xslt.LiteralElement.LiteralElement

Methods inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltElement

Methods inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltNode

Methods inherited from class object

__delattr__, __getattribute__, __hash__, __reduce_ex__, __setattr__, __str__

Members inherited from class Ft.Xml.Xslt.LiteralElement.LiteralElement

Members inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltElement

Members inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltNode

Members inherited from class object

__class__
class ExtendedProcessingInstructionElement(ExtendedSimpleElement, Ft.Xml.Xslt.ProcessingInstructionElement.ProcessingInstructionElement)

Methods

getName(self)

Methods inherited from class ExtendedSimpleElement

Methods inherited from class BaseElement

Methods inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltElement

Methods inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltNode

Methods inherited from class object

__delattr__, __getattribute__, __hash__, __reduce_ex__, __setattr__, __str__

Members inherited from class Ft.Xml.Xslt.ProcessingInstructionElement.ProcessingInstructionElement

Members inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltElement

Members inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltNode

Members inherited from class object

__class__
class ExtendedProcessor(BaseElement, Ft.Xml.Xslt.Processor.Processor)
A version of the Processor class that supports debugging and tracing.

Methods

applyTemplates(self, context, params=None)
Overrides: applyTemplates from class Processor

Methods inherited from class BaseElement

Methods inherited from class Ft.Xml.Xslt.Processor.Processor

Methods inherited from class object

__delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Members inherited from class Ft.Xml.Xslt.Processor.Processor

Members inherited from class object

__class__
class ExtendedSimpleElement(BaseElement)

Methods

instantiate(self, context, processor)

Methods inherited from class BaseElement

class ExtendedTemplateElement(BaseElement, Ft.Xml.Xslt.TemplateElement.TemplateElement)

Methods

instantiate(self, context, processor, params=None)
Overrides: instantiate from class TemplateElement

Methods inherited from class BaseElement

Methods inherited from class Ft.Xml.Xslt.TemplateElement.TemplateElement

Methods inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltElement

Methods inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltNode

Methods inherited from class object

__delattr__, __getattribute__, __hash__, __reduce_ex__, __setattr__, __str__

Members inherited from class Ft.Xml.Xslt.TemplateElement.TemplateElement

Members inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltElement

Members inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltNode

Members inherited from class object

__class__
class ExtendedValueOfElement(ExtendedSimpleElement, Ft.Xml.Xslt.ValueOfElement.ValueOfElement)

Methods

getName(self)

Methods inherited from class ExtendedSimpleElement

Methods inherited from class BaseElement

Methods inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltElement

Methods inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltNode

Methods inherited from class object

__delattr__, __getattribute__, __hash__, __reduce_ex__, __setattr__, __str__

Members inherited from class Ft.Xml.Xslt.ValueOfElement.ValueOfElement

Members inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltElement

Members inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltNode

Members inherited from class object

__class__

Functions

GetMappings()

Globals

newMappings = {'attribute': 'ExtendedProcessingElements.ExtendedAttributeElement', 'choose': 'ExtendedProcessingElements.ExtendedChooseElement', 'comment': 'ExtendedProcessingElements.ExtendedCommentElement', 'copy': 'ExtendedProcessingElements.ExtendedCopyElement', 'copy-of': 'ExtendedProcessingElements.ExtendedCopyOfElement', 'element': 'ExtendedProcessingElements.ExtendedElementElement', 'for-each': 'ExtendedProcessingElements.ExtendedForEachElement', 'if': 'ExtendedProcessingElements.ExtendedIfElement', 'processing-instruction': 'ExtendedProcessingElements.ExtendedProcessingInstructionElement', 'template': 'ExtendedProcessingElements.ExtendedTemplateElement', ...}