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="tedtsch" xml:lang="en-us">
|
| 6 | <title>Editing namespace information</title>
|
| 7 | <titlealts>
|
| 8 | <searchtitle>Editing namespace information</searchtitle>
|
| 9 | </titlealts>
|
| 10 | <shortdesc>Your namespace information is used to provide various information
|
| 11 | about the XML file, such as the XML schema and namespace it is associated
|
| 12 | with. If desired, you can change the schema and namespace your XML file is
|
| 13 | associated with or add a new association. Modifying any associations can impact
|
| 14 | what content is allowed in the XML file.</shortdesc>
|
| 15 | <prolog><metadata>
|
kprice | 9623e9d | 2007-05-03 03:43:05 +0000 | [diff] [blame] | 16 | <keywords><indexterm>XML editor<indexterm>namespace information</indexterm></indexterm>
|
| 17 | <indexterm>XML files<indexterm>namespace information</indexterm></indexterm>
|
kprice | ef16068 | 2006-08-29 18:08:31 +0000 | [diff] [blame] | 18 | </keywords>
|
| 19 | </metadata></prolog>
|
| 20 | <taskbody>
|
| 21 | <context><p>The following instructions were written for the Resource perspective,
|
| 22 | but they will also work in many other perspectives.</p><p>To edit your schema
|
kprice | b59c9f6 | 2008-04-02 21:24:37 +0000 | [diff] [blame] | 23 | information, complete the following steps:</p></context>
|
kprice | ef16068 | 2006-08-29 18:08:31 +0000 | [diff] [blame] | 24 | <steps>
|
| 25 | <step><cmd>In the Design view of the XML editor, right-click your root element
|
| 26 | and click <uicontrol>Edit Namespaces</uicontrol>.</cmd></step>
|
| 27 | <step><cmd>Your XML file can be associated with more than one namespace or
|
| 28 | schema.</cmd><info>Select the entry you want to edit and click <uicontrol>Edit</uicontrol>.</info>
|
| 29 | </step>
|
| 30 | <step><cmd>The value in the <uicontrol>Namespace Name</uicontrol> field is
|
| 31 | a namespace the XML file is associated with.</cmd><info>Your XML file should
|
| 32 | be associated with the same namespace(s) its XML schema is associated with.
|
kprice | b59c9f6 | 2008-04-02 21:24:37 +0000 | [diff] [blame] | 33 | For more information about namespaces, refer to the related reference. For
|
| 34 | more information, see <xref format="html" href="/../../org.eclipse.wst.xsdeditor.doc.user/topics/rnmspc.dita"
|
| 35 | scope="peer">XML namespaces</xref>.</info></step>
|
kprice | ef16068 | 2006-08-29 18:08:31 +0000 | [diff] [blame] | 36 | <step><cmd>All qualified elements and attributes in the XML file associated
|
| 37 | with the namespace will be prefixed with the <uicontrol>Prefix</uicontrol> value.</cmd>
|
| 38 | </step>
|
| 39 | <step><cmd>The <uicontrol>Location Hint</uicontrol> field contains the location
|
| 40 | of the XML schema the XML file is associated with.</cmd><info>An XML Catalog
|
| 41 | Key or a namespace name can be specified in this field. Click <uicontrol>Browse</uicontrol> to
|
| 42 | view all XML schemas in the workbench and XML Catalog.</info></step>
|
| 43 | <step><cmd>Click <uicontrol>OK</uicontrol>, then click <uicontrol>OK</uicontrol> again.</cmd>
|
| 44 | </step>
|
| 45 | </steps>
|
| 46 | <result><p>If you want to create a new association, click <uicontrol>Add</uicontrol> instead
|
kprice | b59c9f6 | 2008-04-02 21:24:37 +0000 | [diff] [blame] | 47 | of <uicontrol>Edit</uicontrol>. You can then either select the <uicontrol><?Pub Caret1?>Specify
|
kprice | ef16068 | 2006-08-29 18:08:31 +0000 | [diff] [blame] | 48 | From Registered Namespace</uicontrol> radio button and select the namespace
|
kprice | b59c9f6 | 2008-04-02 21:24:37 +0000 | [diff] [blame] | 49 | declarations you want to add or select the <uicontrol>Specify New Namespace</uicontrol> radio
|
kprice | ef16068 | 2006-08-29 18:08:31 +0000 | [diff] [blame] | 50 | button and fill in the fields as necessary.</p></result>
|
| 51 | <postreq>If you do not have namespace information in your XML file, you can
|
| 52 | right-click your root element in the Design view and click <uicontrol>Edit
|
| 53 | Namespaces</uicontrol> to add it. If you do not have a root element, you must
|
| 54 | create one before you can add the namespace information.</postreq>
|
| 55 | </taskbody>
|
| 56 | </task>
|
kprice | b59c9f6 | 2008-04-02 21:24:37 +0000 | [diff] [blame] | 57 | <?Pub *0000003265?>
|