Difference between revisions of "Vex/UserGuide"

From Eclipsepedia

< Vex
Jump to: navigation, search
(Editing)
Line 1: Line 1:
{{:DocumentationGuidelines/DraftHeader}}
 
Other ''User Guides'': [http://www.eclipse.org/Xtext/documentation/1_0_0/xtext.html Xtext]
 
 
 
= Vex User Guide =
 
= Vex User Guide =
  

Revision as of 20:00, 22 August 2010

Contents

Vex User Guide

Overview

What is Vex?

Vex is a Visual Editor for XML that hides the raw XML tags from the user, providing instead a word processor like interface. Vex uses standard DTD files to define document types and CSS stylesheets to define document layout. Vex contains definitions for DocBook and DITA. To edit other XML formats only a DTD and a CSS are needed.

Who Uses Vex?

Create a new Document

  • DITA
  • DocBook
  • Other XML Formats


Editing

Vex Plug-in Project: Configure your own XML format

  1. Choose File | New | Project...
  2. Choose XML Authoring | Vex Plug-in Project
  3. Add the DTD and CSS file into the project
  4. Edit file vex-plugin.xml:
<plugin>
    <extension id="MyXml"
               name="My XML"
               point="org.eclipse.wst.xml.vex.ui.doctypes">
        <doctype dtd="folder/myXml.dtd"
                 publicId="-//MY//XML//EN"
                 systemId="myXml.dtd"/>
    </extension>
    <extension id="MyXmlStyleA"
               name="My XML - Style A"
               point="org.eclipse.wst.xml.vex.ui.styles">
        <style css="folder/myXml.css">
            <doctypeRef publicId="-//MY//XML//EN"/>
        </style>
   </extension>
</plugin>

Vex Plug-in: Deploy your XML Format Configuration