2005-03-19 14:07:16

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/

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.

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

Read in an "instant" stylesheet (a pickled stylesheet tree) and add it to the stylesheet tree.

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

# Utility function for fromInstant()

[(u'http://www.w3.org/1999/XSL/Transform', 'text', False), (None, '*', True)]
u'http://www.w3.org/2000/xmlns/'
u'http://www.w3.org/1999/XSL/Transform'
'http://xml.org/sax/properties/dom-node'