| <?xml version="1.0" encoding="UTF-8"?> |
| <!DOCTYPE html |
| PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html> |
| <head> |
| <!-- /******************************************************************************* |
| * Copyright (c) 2000, 2005 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ --> |
| <link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" /> |
| <title>Editing XML schema properties</title> |
| </head> |
| <body id="tedtschm"><a name="tedtschm"><!-- --></a> |
| |
| <h1 class="topictitle1">Editing XML schema properties</h1> |
| <div><p>After you create an XML schema, you can edit its various properties, |
| such as its namespace and prefix.</p><div class="skipspace"><p>The following instructions were written for the Resource perspective, |
| but they will also work in many other perspectives. </p> |
| <p>To edit an |
| XML schemas properties follow these steps:</p> |
| </div> |
| <ol><li class="skipspace"><span>Create a new XML schema or double-click an existing schema in the |
| Navigator view.</span> It will automatically open in the XML schema editor.</li> |
| <li class="skipspace"><span>In the Properties view, click the <span class="uicontrol">General</span> tab.</span></li> |
| <li class="skipspace"><span>You can change the <span class="uicontrol">Prefix</span> associated with |
| the current namespace.</span> Element and attribute names that are associated |
| with this namespace will be prefixed with this value.</li> |
| <li class="skipspace"><span>You can also edit the <span class="uicontrol">Target namespace</span> for |
| this schema.</span> A namespace is a URI that provides a unique name |
| to 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 |
| namespace declarations to your XML schema.</span></li> |
| </ol> |
| </li> |
| <li class="skipspace"><span>Click the <span class="uicontrol">Other</span> tab.</span> You can |
| modify 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 |
| XML schema instance to be qualified by the prefix that is associated with |
| the schema namespace; otherwise, select <span class="uicontrol">unqualified</span>.</li> |
| <li class="skipspace"><span>The <span class="uicontrol">blockDefault</span> value.</span> This |
| field determines whether the types or elements in the schema may be replaced |
| by elements or types derived from them.</li> |
| <li class="skipspace"><span>The <span class="uicontrol">elementFormDefault</span> value.</span> Select <span class="uicontrol">qualified</span> if |
| you want elements in an XML schema instance to be qualified by the prefix |
| that is associated with the schema namespace; otherwise, select <span class="uicontrol">unqualified</span>.</li> |
| <li class="skipspace"><span>The <span class="uicontrol">finalDefault</span> value.</span> This |
| field determines whether the types or elements in the schema may be derived |
| from.</li> |
| <li class="skipspace"><span>The <span class="uicontrol">version</span> value.</span> Type the |
| version number of the schema in the <span class="uicontrol">version</span> field</li> |
| <li class="skipspace"><span>The <span class="uicontrol">xml:lang</span> value. </span> Type |
| the appropriate ISO-IETF (for example, en-us) tag in this field. This tag |
| may be inserted in documents to specify the language used in the contents |
| and attribute values of any element in an XML file.</li> |
| </ol> |
| </li> |
| <li class="skipspace"><span>Click the <span class="uicontrol">Documentation</span> tab if you want |
| to provide any information about this XML schema.</span> The <span class="uicontrol">Documentation</span> page |
| is used for human readable material, such as a description, and the <span class="uicontrol">App |
| Info</span> page can be used to provide information for applications. </li> |
| </ol> |
| </div> |
| </body> |
| </html> |