Package XSLTools :: Module XSLOutput :: Class Processor
[show private | hide private]
[frames | no frames]

Class Processor


A handler which can prepare output for an XMLTools2 template.
Method Summary
  __init__(self, filenames, references, parameters, expressions)
Initialise the handler with the 'filenames' of stylesheets producing the final output, a 'references' dictionary indicating related stylesheets.
  __del__(self)
Tidy up the stylesheet documents.
  get_result(self, document)
Return a transformed document produced from the object's stylesheets and the given 'document'.
  send_output(self, stream, encoding, document)
Send output to the given 'stream' using the given output encoding for the given 'document'.
  _get_result(self, document)
Return a transformation of the given 'document'.
  _quote(self, s)
Make the given parameter string 's' palatable for libxslt.

Method Details

__init__(self, filenames, references=None, parameters=None, expressions=None)
(Constructor)

Initialise the handler with the 'filenames' of stylesheets producing the final output, a 'references' dictionary indicating related stylesheets. Additional 'parameters' may be specified as a dictionary whose values are converted to string values; additional 'expressions' may also be specified as a dictionary - such expressions are actually evaluated in stylesheet.

__del__(self)
(Destructor)

Tidy up the stylesheet documents.

get_result(self, document)

Return a transformed document produced from the object's stylesheets and the given 'document'.

send_output(self, stream, encoding, document)

Send output to the given 'stream' using the given output encoding for the given 'document'.

_get_result(self, document)

Return a transformation of the given 'document'.

_quote(self, s)

Make the given parameter string 's' palatable for libxslt.

Generated by Epydoc 2.1 on Mon Mar 13 20:09:25 2006 http://epydoc.sf.net