OX Model configuration file

 

OX model configuration file is a file to define the list of pipelines for OX processor to process. The model config file MUST sit under model folder, and it MUST be named it as model.xml. 

The dtd for the configuration can be view here.

Example

The following is the sample configuration file (model.xml ). 

<?xml version="1.0" encoding="utf-8"?>

<pipelines>

  <!-- to define a pipeline -->
  <pipeline name="sample-1" description="Sample 1" accepts="application/vnd.openxmlformats-officedocument.wordprocessingml.document">
    <!-- to define a step -->
    <step id="sample-step-1" name="Sample step 1" />

    <step id="sample-step-2" name="Sample step 2" />
    
    <step id="sample-step-3" name="Sample step 2" class="org.pageseeder.ox.step.Compression" />
  </pipeline>

  
  <pipeline name="sample-2" description="Sample 2" accepts="application/vnd.openxmlformats-officedocument.wordprocessingml.document">
    <step id="sample-step-1" name="Sample step 1"/>

    <step id="sample-step-2" name="Sample step 2"/>

    <step id="sample-step-3" name="Sample step 3" class="org.pageseeder.ox.step.Compression" />
  </pipeline>

</pipelines>

Created on , last edited on