blob: 9249ccf5001f33f586bc343a5f0a26aa4a012bb7 [file] [log] [blame]
kpriceef160682006-08-29 18:08:31 +00001<?xml version="1.0" encoding="utf-8"?>
kpriceb59c9f62008-04-02 21:24:37 +00002<!--Arbortext, Inc., 1988-2006, v.4002-->
4 "task.dtd">
kpriceef160682006-08-29 18:08:31 +00005<task id="tedtdoc" xml:lang="en-us">
6<title>Editing DOCTYPE declarations</title>
8<searchtitle>Editing DOCTYPE declarations</searchtitle>
10<shortdesc>The DOCTYPE declaration in an XML file is used at the beginning
11of it to associate it with a DTD file. You can edit your DOCTYPE declaration
12to change the DTD file your XML file is associated with.</shortdesc>
kprice9623e9d2007-05-03 03:43:05 +000014<keywords><indexterm>DOCTYPE declarations<indexterm>XML editor</indexterm></indexterm>
15<indexterm>XML editor<indexterm>DOCTYPE declarations</indexterm></indexterm>
kpriceef160682006-08-29 18:08:31 +000016</keywords>
19<context><p>The following instructions were written for the Resource perspective,
20but they will also work in many other perspectives.</p><p>To edit your DOCTYPE
kpriceb59c9f62008-04-02 21:24:37 +000021declaration, complete the following steps:</p></context>
kpriceef160682006-08-29 18:08:31 +000022<steps>
23<step><cmd>In the Design view of the XML editor, right-click <uicontrol>DOCTYPE</uicontrol> and
24click <uicontrol>Edit DOCTYPE</uicontrol>.</cmd></step>
kpriceb59c9f62008-04-02 21:24:37 +000025<step><cmd>The <?Pub Caret?>value in the <uicontrol>Root element name</uicontrol> field
kpriceef160682006-08-29 18:08:31 +000026should match the root element of your XML file exactly.</cmd><info>You should
27only edit the value in this field if your root element changes.</info></step>
28<step><cmd>You can select a Public ID for any existing XML Catalog entries
29by clicking <uicontrol>Browse</uicontrol>. </cmd><info>The value in the <uicontrol>Public
30ID</uicontrol> field is the Public Identifier. It is used to associate the
kpriceb59c9f62008-04-02 21:24:37 +000031XML file (using an XML Catalog entry) with a DTD file. For more information,
32see <xref format="html" href="txmlcat.dita" scope="peer">Adding entries to
33the XML Catalog</xref>.</info></step>
kpriceef160682006-08-29 18:08:31 +000034<step><cmd>The value in the <uicontrol>System ID</uicontrol> field is the
35DTD the XML file is associated with. Type the path of the DTD file (or browse
kpriceb59c9f62008-04-02 21:24:37 +000036for it) you want the XML file associated with in this field. </cmd><info> <note>When
37the XML file is processed by the XML processor, it will first try to use the
38Public ID to locate the DTD, and if this fails, it will use the System ID
39to find it.</note></info></step>
kpriceef160682006-08-29 18:08:31 +000040<step><cmd>Click <uicontrol>OK</uicontrol>.</cmd></step>
42<postreq>If you do not have a DOCTYPE declaration in your XML file, you can
43right-click in the Design view and click <uicontrol>Add DTD Information</uicontrol> to
44add one.</postreq>
kpriceb59c9f62008-04-02 21:24:37 +000047<?Pub *0000002518?>