Take a look at Perl interface. It offers both of procedural and object
interface.
The most important (and common) features are:
- passing named arguments (more the data and template)
- passing named parameters
- accessing result buffers (actually one of them)
Sablotron code is reentrant, so one instance of processor
(CreateProcessor) should be related to one Python object.
Sablotron supports handlers, which are useful for several jobs. The most
important is error handling (message handler). See perldoc
XML::sablotron and/or Sablotron doc. for more details.
There are several additional features, but above is the basic set.
HTH
Pavel
>
> If anybody has ideas, suggestions, request whatever on what a Python
> API for Sablotron should do, etc. please send them to me or to the list.
>
> - Guenter
>
--
Pavel Hlavnicka
Ginger Alliance Ltd.
Prague; Czech Republic