![]() |
![]() |
Cheshire3 Objects: Transformer |
A Transformer is the opposite of a Parser. It takes a Record and produces a Document. In many cases this can be handled by an XSLT implementation but other instances might include one that returns a binary file based on the information in the record. Transformers might be used in an indexing chain, but are more likely to be used to render a record in a format or schema requested by the end user.
There is only one pre-configured implementations as most types of Transformer are highly data dependent.
This may be used out-of-the-box in configurations for Workflows, or in code by getting the object from a Server.
Module: cheshire3.transformer
Classes:
Function | Parameters | Returns | Description |
---|---|---|---|
__init__ | config, parent | ||
process_record | session, record | Document | Return a Document after some transformation of the Record |
Sub-Package: graph
Module: cheshire3.graph.transformer
Sub-package: web
Module: cheshire3.web.transformer