A PipelineTransformer is created using a Spring bean with the following attributes:
Attribute | Value | Description |
---|---|---|
id | User-defined | A unique ID for the bean. |
parent | xml.transform.PipelineTransformer.abstract | The parent bean. |
The PipelineTransformer bean takes the following properties:
Property | Type | Mandatory | Description |
---|---|---|---|
pipelineDefinition | PipelineDefinition | Required | The pipeline definition to execute for the transformation |
mediaType | MediaType | Required | The MediaType of the result document that will be generated by this pipeline. E.g. text/xml, application/pdf... |
xmlSchemaFilter | XmlSchemaFilter | Required | A XmlSchemaFilter for the source document. This will be used to determine if a given source document is valid for (can be processed by) this transformer. |
<bean id="dita.transformer.pipeline.map2pdf2" parent="xml.transform.PipelineTransformer.abstract"> <property name="pipelineDefinition" value="custom.pdf.pipelineDefinition" /> <property name="mediaType" ref="pdf.mediaType" /> <property name="xmlSchemaFilter" ref="dita.schemas.map" /> </bean> <bean id="dita.transformer.pipeline.topic2pdf2" parent="xml.transform.PipelineTransformer.abstract"> <property name="pipelineDefinition" value="custom.pdf.pipelineDefinition" /> <property name="mediaType" ref="pdf.mediaType" /> <property name="xmlSchemaFilter" ref="dita.schemas.topic" /> </bean>