KeyView 24.2

# Use the KeyView Document Type Definition (DTD)

XML Export produces well-formed, valid XML documents. Document validity is based on a Document Type Definition (DTD) called the `Verity.dtd`. The `Verity.dtd` is in the default output directory `tempout`. If the DTD is in a different directory, the full path must be specified in `pszVerityDTDPath`.

The elements in the `Verity.dtd` are based on those defined in the W3C XHTML 1.0 specification and the attributes are based on those defined in the W3C CSS 2 specification.

The root element of each document is "`VerityXMLExport`." Character entities are imported by using the three XHTML DTDs defined at the beginning of the `Verity.dtd`.

    <!-- Character entities -->
    <!ENTITY % HTMLlat1x SYSTEM "HTMLlat1x.ent">
    %HTMLlat1x;
    <!ENTITY % HTMLspecialx SYSTEM "HTMLspecialx.ent">
    %HTMLspecialx;
    <!ENTITY % HTMLsymbolx SYSTEM "HTMLsymbolx.ent">
    %HTMLsymbolx;

## Use XML Style Language Transformation (XSLT)

XML Export is designed to generate XML documents based on the `Verity.dtd`. You can convert the XML produced by XML Export to other XML vocabularies, such as Wireless Markup Language (WML), by using XSLT.

## Add Elements and Attributes to the DTD

XML Export can only generate XML that conforms to the `Verity.dtd`. You can create your own DTD based on the `Verity.dtd`. You cannot rename the `Verity.dtd`, so make sure you back up the original `Verity.dtd` to another name before making changes.

If you create your own DTD and add elements or attributes that are not defined in the original `Verity.dtd`, you must ensure that the new markup is defined in the XML Export API classes. You can define the markup either by entering the markup directly in the styles, or by populating the styles by using the template files. See Map Styles for more information on mapping styles to user-defined markup.

## Move the DTD

The default output directory for the `Verity.dtd` is `programs\tempout`. If you move the `Verity.dtd` to another output directory, you must set the string value of `pszVerityDTDPath` to the new location. This path is added to the document type declaration in the XML file. See pszVerityDTDPath.

Copyright 1997-2024 Open Text
Version 24.2 | Last updated March 2024

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: IDOL KeyView 24.2

Topic Title: Use the KeyView Document Type Definition (DTD)