blob: 877cf3096af0ceaf439b9d8dabad523c8513533c [file] [log] [blame]
syeshinf3d0d4b2005-07-27 18:33:03 +00001<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE html
3 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4<html>
5<head>
syeshinaaa21932005-09-22 17:13:22 +00006<!-- /*******************************************************************************
7 * Copyright (c) 2000, 2005 IBM Corporation and others.
8 * All rights reserved. This program and the accompanying materials
9 * are made available under the terms of the Eclipse Public License v1.0
10 * which accompanies this distribution, and is available at
11 * http://www.eclipse.org/legal/epl-v10.html
12 *
13 * Contributors:
14 * IBM Corporation - initial API and implementation
15 *******************************************************************************/ -->
syeshin8f077832005-09-06 04:22:45 +000016<link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" />
syeshinf3d0d4b2005-07-27 18:33:03 +000017<title>Editing XML schema properties</title>
syeshin8f077832005-09-06 04:22:45 +000018</head>
syeshinf3d0d4b2005-07-27 18:33:03 +000019<body id="tedtschm"><a name="tedtschm"><!-- --></a>
20
21<h1 class="topictitle1">Editing XML schema properties</h1>
22<div><p>After you create an XML schema, you can edit its various properties,
23such as its namespace and prefix.</p><div class="skipspace"><p>The following instructions were written for the Resource perspective,
24but they will also work in many other perspectives. </p>
25<p>To edit an
26XML schemas properties follow these steps:</p>
27</div>
28<ol><li class="skipspace"><span>Create a new XML schema or double-click an existing schema in the
29Navigator view.</span> It will automatically open in the XML schema editor.</li>
30<li class="skipspace"><span>In the Properties view, click the <span class="uicontrol">General</span> tab.</span></li>
31<li class="skipspace"><span>You can change the <span class="uicontrol">Prefix</span> associated with
32the current namespace.</span> Element and attribute names that are associated
33with this namespace will be prefixed with this value.</li>
34<li class="skipspace"><span>You can also edit the <span class="uicontrol">Target namespace</span> for
35this schema.</span> A namespace is a URI that provides a unique name
36to associate with all the elements and type definitions in a schema.<ol type="a"><li><span>Click <span class="uicontrol">Advanced</span> if you want to add more
37namespace declarations to your XML schema.</span></li>
38</ol>
39</li>
40<li class="skipspace"><span>Click the <span class="uicontrol">Other</span> tab.</span> You can
41modify the following values in this page.<ol type="a"><li class="skipspace"><span>The <span class="uicontrol">attributeFormDefault</span> value. </span> Select <span class="uicontrol">qualified</span> if you want attributes in an
42XML schema instance to be qualified by the prefix that is associated with
43the schema namespace; otherwise, select <span class="uicontrol">unqualified</span>.</li>
44<li class="skipspace"><span>The <span class="uicontrol">blockDefault</span> value.</span> This
45field determines whether the types or elements in the schema may be replaced
46by elements or types derived from them.</li>
47<li class="skipspace"><span>The <span class="uicontrol">elementFormDefault</span> value.</span> Select <span class="uicontrol">qualified</span> if
48you want elements in an XML schema instance to be qualified by the prefix
49that is associated with the schema namespace; otherwise, select <span class="uicontrol">unqualified</span>.</li>
50<li class="skipspace"><span>The <span class="uicontrol">finalDefault</span> value.</span> This
51field determines whether the types or elements in the schema may be derived
52from.</li>
53<li class="skipspace"><span>The <span class="uicontrol">version</span> value.</span> Type the
54version number of the schema in the <span class="uicontrol">version</span> field</li>
55<li class="skipspace"><span>The <span class="uicontrol">xml:lang</span> value. </span> Type
56the appropriate ISO-IETF (for example, en-us) tag in this field. This tag
57may be inserted in documents to specify the language used in the contents
58and attribute values of any element in an XML file.</li>
59</ol>
60</li>
61<li class="skipspace"><span>Click the <span class="uicontrol">Documentation</span> tab if you want
62to provide any information about this XML schema.</span> The <span class="uicontrol">Documentation</span> page
63is used for human readable material, such as a description, and the <span class="uicontrol">App
64Info</span> page can be used to provide information for applications. </li>
65</ol>
66</div>
syeshinf3d0d4b2005-07-27 18:33:03 +000067</body>
68</html>