Documentation Center

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 SDL LiveContent Create 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="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.

SDL LiveContent Create 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, cd-rom, etc) you wish to support.

Special names

SDL LiveContent Create has a few predefined names that are automatically translated when the user interface language changes.
NameDescription
docViewDocument View
defaultViewWYSIWYG View (editable)
treeViewTree View
xmlView XML View
printView Print View

Namespace

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

Parent element

pipeline

Attributes

AttributeDescription and useType
nameThe name that is displayed in the Document Views menu.Fixed value- must be 1.0

History

VersionEvent
SDL LiveContent Create 5.0Introduction.

Child elements