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.

Example

<pipeline xml="xml/doc.xml" xsd="xsd/schema.xsd">
  <view name="WYSIWYG View">
    <transform xsl="xsl/presentation.xsl" />
  </view>
  <view name="Tree View">
    <treeTransform/>
  </view>
</pipeline>

A view must contain one or more actions. The output of the final action in a view must be html. Xopus supports any number of consecutive actions in a view. This helps to modularize your xsl stylesheets and your xml formats. You can use you own type references that can be transformed into xincludes. Or transform multiple xml formats to a single intermediate format for which you have an xsl for each style (website, cd-rom, etc) of output you wish to support.

Elements and Attributes

Parent Elements

Element Description
pipeline

The pipeline element defines the xml pipeline. It specifies the xml document to load and the xml schema to use for validation.

Child Elements

Element Description
transform

A transform action transforms the incoming xml using a specified xsl stylesheet.

resolveXIncludes

Xopus can also resolve xincludes. An xinclude points to an xml fragment at a certain uri. Resolving it will replace the xinclude element with the xml fragment it refers to.

Attributes

Attribute Use Description
name Required

Related Topics


Title Description
name (1)

A view has a name that is displayed in the menu.

pipeline

The pipeline element defines the xml pipeline. It specifies the xml document to load and the xml schema to use for validation.

resolveXIncludes

Xopus can also resolve xincludes. An xinclude points to an xml fragment at a certain uri. Resolving it will replace the xinclude element with the xml fragment it refers to.

transform

A transform action transforms the incoming xml using a specified xsl stylesheet.

The Xopus Interface

Use the items on the right to see where to find them in Xopus, and how they work.