blob: 116db62d811965b2baf30806acfe2ac818d0087a [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-->
3<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN"
4 "task.dtd">
kpriceef160682006-08-29 18:08:31 +00005<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
11about the XML file, such as the XML schema and namespace it is associated
12with. If desired, you can change the schema and namespace your XML file is
13associated with or add a new association. Modifying any associations can impact
14what content is allowed in the XML file.</shortdesc>
15<prolog><metadata>
kprice9623e9d2007-05-03 03:43:05 +000016<keywords><indexterm>XML editor<indexterm>namespace information</indexterm></indexterm>
17<indexterm>XML files<indexterm>namespace information</indexterm></indexterm>
kpriceef160682006-08-29 18:08:31 +000018</keywords>
19</metadata></prolog>
20<taskbody>
21<context><p>The following instructions were written for the Resource perspective,
22but they will also work in many other perspectives.</p><p>To edit your schema
kpriceb59c9f62008-04-02 21:24:37 +000023information, complete the following steps:</p></context>
kpriceef160682006-08-29 18:08:31 +000024<steps>
25<step><cmd>In the Design view of the XML editor, right-click your root element
26and click <uicontrol>Edit Namespaces</uicontrol>.</cmd></step>
27<step><cmd>Your XML file can be associated with more than one namespace or
28schema.</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
31a namespace the XML file is associated with.</cmd><info>Your XML file should
32be associated with the same namespace(s) its XML schema is associated with.
kpriceb59c9f62008-04-02 21:24:37 +000033For more information about namespaces, refer to the related reference. For
34more information, see <xref format="html" href="/../../org.eclipse.wst.xsdeditor.doc.user/topics/rnmspc.dita"
35scope="peer">XML namespaces</xref>.</info></step>
kpriceef160682006-08-29 18:08:31 +000036<step><cmd>All qualified elements and attributes in the XML file associated
37with 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
40of the XML schema the XML file is associated with.</cmd><info>An XML Catalog
41Key or a namespace name can be specified in this field. Click <uicontrol>Browse</uicontrol> to
42view 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
kpriceb59c9f62008-04-02 21:24:37 +000047of <uicontrol>Edit</uicontrol>. You can then either select the <uicontrol><?Pub Caret1?>Specify
kpriceef160682006-08-29 18:08:31 +000048From Registered Namespace</uicontrol> radio button and select the namespace
kpriceb59c9f62008-04-02 21:24:37 +000049declarations you want to add or select the <uicontrol>Specify New Namespace</uicontrol> radio
kpriceef160682006-08-29 18:08:31 +000050button and fill in the fields as necessary.</p></result>
51<postreq>If you do not have namespace information in your XML file, you can
52right-click your root element in the Design view and click <uicontrol>Edit
53Namespaces</uicontrol> to add it. If you do not have a root element, you must
54create one before you can add the namespace information.</postreq>
55</taskbody>
56</task>
kpriceb59c9f62008-04-02 21:24:37 +000057<?Pub *0000003265?>