4Suite API Documentation

Module Ft.Xml.Xslt.StylesheetReader

Classes for the creation of a stylesheet object
Copyright 2004 Fourthought, Inc. (USA).
Detailed license and copyright information: http://4suite.org/COPYRIGHT
Project home, documentation, distributions: http://4suite.org/
Classes:

Classes

class StylesheetReader(Ft.Xml.Xslt.StylesheetHandler.StylesheetHandler)
This class can be used to read, from a variety of sources, a stylesheet and all its included and imported stylesheets, building from them a single, compact representation of an XSLT stylesheet tree (an Ft.Xml.Xslt.Stylesheet.Stylesheet object).
This is done with the most efficient parsing method available, and
avoids creating a Domlette document for each document it reads.

Methods

fromDocument(self, document, baseUri='', factory=None)
Read in a stylesheet source document from a Domlette and add it to the stylesheet tree. If a document with the same URI has already been read, the cached version will be used instead (so duplicate imports, includes, or stylesheet appends do not result in multiple reads).
fromInstant(self, instant, baseUri='', is_import=0)
Read in an "instant" stylesheet (a pickled stylesheet tree) and add it to the stylesheet tree.
fromSrc(self, isrc, extElements=None)
Read in a stylesheet source document from an InputSource and add it to the stylesheet tree. If a document with the same URI has already been read, the cached version will be used instead (so duplicate imports, includes, or stylesheet appends do not result in multiple reads).

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