pipeline

The pipeline element defines the XML pipeline. It specifies the document to load and the XML Schema to use for validation.

The pipeline consists of one or more views. Each view is the result of one or more consecutive operations on the source XML.

<x:config version="1.0" xmlns:x="http://www.xopus.com/xmlns/config">
  <x:import src="config.xml"/>
  <x:pipeline xml="xml/doc.xml" xsd="xsd/schema.xsd">
    <x:view name="defaultView">
      <x:transform xsl="xsl/presentation.xsl"/>
    </x:view>
    <x:view name="Other View">
      <x:treeTransform/>
    </x:view>
  </x:pipeline>
</x:config>

Both URI's can be paths relative to the file that contains the pipeline definition.

This will be sufficient in most systems. However, in some cases you may wish to use an other identifier, like a document id, since the document may not actually exist on the server. In those cases the Xopus API can be used to change the way an document is loaded. See IO for more information.


pipeline element

Namespace: http://www.xopus.com/xmlns/config

Allowed Children

view
(Optional)

Attributes

xml
The URI of the document to edit.
xsd
The URI of the XML Schema, against which the document will be validated.

Parent Elements

config

History

version event
Xopus 3.2.8 Change. When no <view> is defined, the <treeTransform> will be used as fallback.
Xopus 2 Introduction.