These are the most common steps for using this XSLT engine: 1. Create an Ft.Xml.Xslt.Processor.Processor instance: from Ft.Xml.Xslt import Processor processor = Processor.Processor() 2. Prepare Ft.Xml.InputSource instances (via their factory) for the source XML and for the stylesheet. 3. Call the Processor's appendStylesheet() method, passing it the stylesheet's InputSource. 4. Call the Processor's run() method, passing it the source document's InputSource. You can call run() multiple times on different InputSources. When you're done, the processor's reset() method can be used to restore a clean slate (at which point you would have to append stylesheets to the processor again), but in most circumstances it is actually less expensive to just create a new Processor instance. Copyright 2003 Fourthought, Inc. (USA). Detailed license and copyright information: http://4suite.org/COPYRIGHT Project home, documentation, distributions: http://4suite.org/
Classes:
|
Functions:
|
Globals:
|
Implementation of the XSLT Spec apply-imports stylesheet element.
WWW: http://4suite.org/4XSLT e-mail: support@4suite.org
|
|
Implementation of xsl:apply-templates instruction
|
|
Implementation of xsl:attribute element
|
|
Classes that support validation and evaluation of attribute values in
XSLT instruction elements
|
|
Implementation of the XSLT Spec attribute-set stylesheet element.
WWW: http://4suite.org/4XSLT e-mail: support@4suite.org
|
|
Implementation of XSLT attribute value templates
|
|
Fourthought proprietary XSLT extension elements
|
|
4XSLT specific extension functions (i.e. ones that create a node set)
|
|
Implementation of the XSLT Spec call-template stylesheet element.
WWW: http://4suite.org/4XSLT e-mail: support@4suite.org
|
|
Implementation of the XSLT Spec choose instruction
WWW: http://4suite.org/4XSLT e-mail: support@4suite.org
|
|
xsl:comment instruction implementation
|
|
Implementation of the XSLT Spec copy stylesheet element.
WWW: http://4suite.org/4XSLT e-mail: support@4suite.org
|
|
Implementation of the XSLT Spec copy-of element.
WWW: http://4suite.org/4XSLT e-mail: support@4suite.org
|
|
DOM DocumentFragment writer for XSLT output
|
|
Implementation of xsl:element element
|
|
Extended versions of XSLT elements for debugging and execution tracing
|
|
Implementation of the XSLT Spec for-each stylesheet element.
WWW: http://4suite.org/4XSLT e-mail: support@4suite.org
|
|
Base implementation of XSLT variable assigning elements
|
|
HTML writer for XSLT processor output
|
|
Implementation of the XSLT Spec if instruction
WWW: http://4suite.org/4XSLT e-mail: support@4suite.org
|
|
Implementation of XSLT literal result elements
|
|
Implementation of the XSLT Spec import stylesheet element.
WWW: http://4suite.org/4XSLT e-mail: support@4suite.org
|
|
XSLT error codes and messages
|
|
Interface definition for XSLT output writers
|
|
Implementation of xsl:number
|
|
Non-template instructions from the XSLT spec
WWW: http://4suite.org/4XSLT e-mail: support@4suite.org
|
|
Manages XSLT output parameters governed by the xsl:output instruction
See also Ft.Xml.Xslt.OutputParameters
|
|
Represents XSLT output parameters governed by the xsl:output instruction
See also Ft.Xml.Xslt.OutputHandler
|
|
Implementation of the XSLT Spec param stylesheet element.
WWW: http://4suite.org/4XSLT e-mail: support@4suite.org
|
|
Plain text writer for XSLT processor output
|
|
Implementation of the XSLT Spec processing-instruction stylesheet element.
WWW: http://4suite.org/4XSLT e-mail: support@4suite.org
|
|
XSLT processing engine
|
|
Light-weight functions to convert from Roman-Numerals to ints,
and vice-versa.
|
|
Result Tree Fragment writer for XSLT output
|
|
SAX2 event writer for XSLT output
|
|
xsl:sort implementation
Copyright 2005 Fourthought, Inc. (USA).
Detailed license and copyright information: http://4suite.org/COPYRIGHT
Project home, documentation, distributions: http://4suite.org/
|
|
A specialized XSLT output writer that only captures text output events
|
|
xsl:stylesheet / xsl:transform implementation;
various stylesheet internals
|
|
Stylesheet tree generator
|
|
Classes for the creation of a stylesheet object
|
|
Node classes for the stylesheet tree
|
|
Implementation of the XSLT Spec template stylesheet element.
WWW: http://4suite.org/4XSLT e-mail: support@4suite.org
|
|
Implementation of the xsl:text element.
|
|
Components for reading Text files from a SAX-like producer.
WWW: http://4suite.org/4DOM e-mail: support@4suite.org
|
|
Node classes for the stylesheet tree
|
|
Implementation of the xsl:value-of element.
|
|
Implementation of the XSLT Spec variable stylesheet element.
WWW: http://4suite.org/4XSLT e-mail: support@4suite.org
|
|
Implementation of the XSLT Spec with-param stylesheet element.
WWW: http://4suite.org/4XSLT e-mail: support@4suite.org
|
|
Implement Patterns according to the XSLT spec
|
|
XML writer for XSLT output
|
|
Context and state information for XSLT processing
|
|
Standard XSLT functions
|
source - XML source document in the form of a a string (not Unicode object), file-like object (stream), file path, URI or Ft.Xml.InputSource.InputSource instance. If string or stream it must be self-contained XML (i.e. not requiring access to any other resource such as external entities or includes) stylesheet - XSLT document in the form of a string, stream, URL, file path or Ft.Xml.InputSource.InputSource instance params - optional dictionary of stylesheet parameters, the keys of which may be given as unicode objects if they have no namespace, or as (uri, localname) tuples if they do. output - optional file-like object to which output is written (incrementally, as processed)