view
The view element defines one or more actions to be performed consecutively on the xml resulting in different views for the user.
The user can choose the preferred view from the Content Editor user interface.
<x:config version="1.0" xmlns:x="http://www.xopus.com/xmlns/config">
<x:pipeline xml="xml/doc.xml" xsd="xsd/schema.xsd">
<x:view name="WYSIWYG View">
<x:transform xsl="xsl/presentation.xsl" />
</x:view>
<x:view name="tagsOnView">
<x:transform xsl="xsl/presentation.xsl" />
<x:tagTransform/>
</x:view>
<x:view name="Tree View">
<x:treeTransform/>
</x:view>
</x:pipeline>
</x:config>
A view must contain one or more actions. The output of the final action in a view must be valid HTML.
Content Editor 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 stylesheet for each publication channel (website, print, etc) you wish to support.
Special names
Content Editor has a few predefined names that are automatically translated when the user interface language changes.| Name | Description |
|---|---|
docView | Document View |
defaultView | WYSIWYG View (editable) |
tagsOnView | Tags On View |
treeView | Tree View |
xmlView | XML View |
printView | Print View |
Namespace
http://www.xopus.com/xmlns/config
Parent element
pipeline
Attributes
| Attribute | Description and use | Type |
|---|---|---|
name | The name that is displayed in the Document Views menu. | String |