kprice | ef16068 | 2006-08-29 18:08:31 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?>
|
kprice | b59c9f6 | 2008-04-02 21:24:37 +0000 | [diff] [blame] | 2 | <!--Arbortext, Inc., 1988-2006, v.4002-->
|
| 3 | <!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN"
|
| 4 | "task.dtd">
|
kprice | ef16068 | 2006-08-29 18:08:31 +0000 | [diff] [blame] | 5 | <task id="tedtdoc" xml:lang="en-us">
|
| 6 | <title>Editing DOCTYPE declarations</title>
|
| 7 | <titlealts>
|
| 8 | <searchtitle>Editing DOCTYPE declarations</searchtitle>
|
| 9 | </titlealts>
|
| 10 | <shortdesc>The DOCTYPE declaration in an XML file is used at the beginning
|
| 11 | of it to associate it with a DTD file. You can edit your DOCTYPE declaration
|
| 12 | to change the DTD file your XML file is associated with.</shortdesc>
|
| 13 | <prolog><metadata>
|
kprice | 9623e9d | 2007-05-03 03:43:05 +0000 | [diff] [blame] | 14 | <keywords><indexterm>DOCTYPE declarations<indexterm>XML editor</indexterm></indexterm>
|
| 15 | <indexterm>XML editor<indexterm>DOCTYPE declarations</indexterm></indexterm>
|
kprice | ef16068 | 2006-08-29 18:08:31 +0000 | [diff] [blame] | 16 | </keywords>
|
| 17 | </metadata></prolog>
|
| 18 | <taskbody>
|
| 19 | <context><p>The following instructions were written for the Resource perspective,
|
| 20 | but they will also work in many other perspectives.</p><p>To edit your DOCTYPE
|
kprice | b59c9f6 | 2008-04-02 21:24:37 +0000 | [diff] [blame] | 21 | declaration, complete the following steps:</p></context>
|
kprice | ef16068 | 2006-08-29 18:08:31 +0000 | [diff] [blame] | 22 | <steps>
|
| 23 | <step><cmd>In the Design view of the XML editor, right-click <uicontrol>DOCTYPE</uicontrol> and
|
| 24 | click <uicontrol>Edit DOCTYPE</uicontrol>.</cmd></step>
|
kprice | b59c9f6 | 2008-04-02 21:24:37 +0000 | [diff] [blame] | 25 | <step><cmd>The <?Pub Caret?>value in the <uicontrol>Root element name</uicontrol> field
|
kprice | ef16068 | 2006-08-29 18:08:31 +0000 | [diff] [blame] | 26 | should match the root element of your XML file exactly.</cmd><info>You should
|
| 27 | only 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
|
| 29 | by clicking <uicontrol>Browse</uicontrol>. </cmd><info>The value in the <uicontrol>Public
|
| 30 | ID</uicontrol> field is the Public Identifier. It is used to associate the
|
kprice | b59c9f6 | 2008-04-02 21:24:37 +0000 | [diff] [blame] | 31 | XML file (using an XML Catalog entry) with a DTD file. For more information,
|
| 32 | see <xref format="html" href="txmlcat.dita" scope="peer">Adding entries to
|
| 33 | the XML Catalog</xref>.</info></step>
|
kprice | ef16068 | 2006-08-29 18:08:31 +0000 | [diff] [blame] | 34 | <step><cmd>The value in the <uicontrol>System ID</uicontrol> field is the
|
| 35 | DTD the XML file is associated with. Type the path of the DTD file (or browse
|
kprice | b59c9f6 | 2008-04-02 21:24:37 +0000 | [diff] [blame] | 36 | for it) you want the XML file associated with in this field. </cmd><info> <note>When
|
| 37 | the XML file is processed by the XML processor, it will first try to use the
|
| 38 | Public ID to locate the DTD, and if this fails, it will use the System ID
|
| 39 | to find it.</note></info></step>
|
kprice | ef16068 | 2006-08-29 18:08:31 +0000 | [diff] [blame] | 40 | <step><cmd>Click <uicontrol>OK</uicontrol>.</cmd></step>
|
| 41 | </steps>
|
| 42 | <postreq>If you do not have a DOCTYPE declaration in your XML file, you can
|
| 43 | right-click in the Design view and click <uicontrol>Add DTD Information</uicontrol> to
|
| 44 | add one.</postreq>
|
| 45 | </taskbody>
|
| 46 | </task>
|
kprice | b59c9f6 | 2008-04-02 21:24:37 +0000 | [diff] [blame] | 47 | <?Pub *0000002518?>
|