pipeline

The pipeline element defines the xml pipeline. It specifies the xml 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.

Example

<config version="1.0" xmlns="http://www.xopus.com/xmlns/config">

  <import src="config.xml"/>

  <pipeline xml="xml/doc.xml" xsd="xsd/schema.xsd">
    <view id="defaultView" default="true">
      <transform xsl="xsl/presentation.xsl" />
    </view>
    <view id="Other View">
      <treeTransform/>
    </view>
  </pipeline>
</config>

Both uris can be paths relative to the html 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 xml document is loaded. See IO for more information.

Elements and Attributes

Parent Elements

Element Description
config

The <config/> contains the global configuration.

<config version="1.0" xmlns="http://www.xopus.com/xmlns/config"/> is the root of an Xopus Local Configuration. It specifies the uri of the xml document to be loaded, its xml schema and what xsl files should be used to render the views.

Child Elements

Element Description
view

A view consists of one or more actions to be performed consecutively on the xml. The user can choose the preferred view from the Xopus menu.

Attributes

Attribute Use Description
xml Required

The xml attribute refers the xml document to edit.

The <xml> element is an xml island within html. The contents of the <xml> element must be well formed xml. So empty elements must be closed: <empty/> and &, < and > must be escaped: &amp;, &lt; and &gt;.

xsd Required

The xsl attribute refers to the xml schema to use to validate the xml document specified using the xml attribute.

Related Topics


Title Description
xml

The xml attribute refers the xml document to edit.

xsd

The xsl attribute refers to the xml schema to use to validate the xml document specified using the xml attribute.

view

A view consists of one or more actions to be performed consecutively on the xml. The user can choose the preferred view from the Xopus menu.