Package restxsl :: Module xslt :: Class Stylesheet
[frames | no frames]

Type Stylesheet

object --+
         |
        Stylesheet


Wrapper around a libxslt stylesheet.
Method Summary
  __init__(self, xslPath)
Construct a Stylesheet object given the path to an XSL stylesheet.
  __del__(self)
libxml2.xmlDoc apply(self, doc, params)
Apply this stylesheet to the given libxml2 xmlDoc object.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Method Details

__init__(self, xslPath)
(Constructor)

Construct a Stylesheet object given the path to an XSL stylesheet.
Parameters:
xslPath - Path to the XSL file.
           (type=str)
Raises:
StylesheetException - If an error occurs while parsing the stylesheet.
Overrides:
__builtin__.object.__init__

apply(self, doc, params)

Apply this stylesheet to the given libxml2 xmlDoc object.
Parameters:
doc - The XML document.
           (type=libxml2.xmlDoc)
params - Stylesheet parameters.
           (type=dict)
Returns:
The transformed XML document.
           (type=libxml2.xmlDoc)

Generated by Epydoc 2.1 on Wed Jul 12 11:20:41 2006 http://epydoc.sf.net