Registering a DTD

You can register a new document type with Vex if you have a DTD file describing the document structure.

  1. If necessary, create a plug-in project to contain your DTD.
  2. Copy the DTD file and any related files to a directory in the plug-in project. If you copy these files outside of Eclipse, you may have to refresh the workspace in Eclipse by right-clicking the project in the Navigator and selecting Refresh from the context menu.
  3. In the Navigator, right-click the DTD file and select Properties.
  4. Select the Vex Document Type property page and provide a Name, Public ID, and System ID to use for this document type. You may optionally select which elements in the DTD may be used for document root elements when done. Click OK when done.

You can confirm that your DTD file was successfully registered by checking out the Vex Configuration view.

Note that you must also register a CSS stylesheet and bind it to your new document type before you can edit documents with the type.

Related Tasks
SourceForge.net LogoBuilt On Eclipse