Creating a simple pipeline from scratch

You need an XML editor to edit the pipelines. You can change the default name of the pipeline by changing its title in the document library.

  1. Create a new text file called map2epub.xml.
  2. Copy the following code in the file:
    <?xml version="1.0" encoding="UTF-8"?>
    <pipelineConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="cpnz:pipeline:xsd:pipeline-configuration.xsd">
      <pipeline>map2epub</pipeline>
      <options>
        <option>
          <name>source-base-uri</name>
          <value>source</value>
        </option>
        <option>
          <name>result-base-uri</name>
          <value>output/html</value>
        </option>
        <option>
          <name>result-document-pattern</name>
          <value>${source.baseName}.${result.mediaType.extension}</value>
        </option>
        <option>
          <name>log-base-uri</name>
          <value>output/log</value>
        </option>
      </options>
    </pipelineConfiguration>
  3. Upload the file at the root of the document library.
  4. Add the aspect XML Pipeline Configuration to the file.
    1. Click on the file name or image to display the details view.
    2. From the right menu, select Manage Aspects.
    3. Click + to add the aspect XML Pipeline Configuration to the column of selected aspects. Click Apply.
  5. Give a new title to your pipeline.
    1. From the new file menu, select Edit Properties.
    2. Add the title: New EPUB and click Apply.
  6. Test the new pipeline.
    1. Select a ditamap and click Run Output Processing from the menu.
    2. Add New EPUB to the list of selected pipeline. Click Run.
  7. Check the result in the output/log folder.