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:
Fields:

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)
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.

Methods

getName(self)

Methods inherited from class ExtendedSimpleElement

Methods inherited from class BaseElement

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

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

Fields

Fields

Fields


Methods

instantiate(self, context, processor)

Methods inherited from class BaseElement

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

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

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

Fields

Fields

Fields


Methods

getName(self)

Methods inherited from class ExtendedSimpleElement

Methods inherited from class BaseElement

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

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

Fields

Fields

Fields


Methods

getName(self)

Methods inherited from class ExtendedSimpleElement

Methods inherited from class BaseElement

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

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

Fields

Fields

Fields


Methods

getName(self)

Methods inherited from class ExtendedSimpleElement

Methods inherited from class BaseElement

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

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

Fields

Fields

Fields


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.StylesheetTree.XsltElement

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

Fields

Fields

Fields


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.StylesheetTree.XsltElement

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

Fields

Fields

Fields


Methods

instantiate(self, context, processor)

Methods inherited from class BaseElement

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

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

Fields

Fields

Fields



Methods

getName(self)

Methods inherited from class ExtendedSimpleElement

Methods inherited from class BaseElement

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

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

Fields

Fields

Fields


A version of the Processor class that supports debugging and tracing.

Methods

applyTemplates(self, context, params=None)

Methods inherited from class BaseElement

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

Methods inherited from class __builtin__.object

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

Fields

Fields


class ExtendedSimpleElement(BaseElement)

Methods

instantiate(self, context, processor)

Methods inherited from class BaseElement


Methods

instantiate(self, context, processor, params=None)

Methods inherited from class BaseElement

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

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

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

Fields

Fields

Fields


Methods

getName(self)

Methods inherited from class ExtendedSimpleElement

Methods inherited from class BaseElement

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

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

Fields

Fields

Fields

Functions

Fields

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', ...}