Configuring a pipeline definition

In the following steps you will be creating and/or configuring Spring beans in a Spring context file. A basic knowledge of Spring and the Spring Framework is required.

To complete the following task, you will need the following beans:
  • A DocumentTypeFilter bean for the applicable document types.
  • A LinkDefinition bean for each of the link types to extract.
  1. Open or create a new Spring context file.
  2. Create an Pipeline Definition bean.
    <bean id="pipeline.dita.map2xhtml.troubleshooting" parent="pipeline.definition.abstract">
      <property name="pipeline" value="cpnz:dita:xpl:map2xhtml.xpl" />
      <property name="sourceXmlSchemaFilter" ref="dita.schemas.map" />
      <property name="resultMediaType" ref="xhtml.mediaType" />
      <property name="catalogs">
        <list>
          <value>classpath:/com/componize/samples/13-pipeline-definition/catalog.xml</value>
        </list>
      </property>
    </bean>
  3. Restart the application server for your changes to take effect.