syeshin | f3d0d4b | 2005-07-27 18:33:03 +0000 | [diff] [blame] | 1 | <?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> |
syeshin | aaa2193 | 2005-09-22 17:13:22 +0000 | [diff] [blame] | 6 | <!-- /******************************************************************************* |
| 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 | *******************************************************************************/ --> |
syeshin | 8f07783 | 2005-09-06 04:22:45 +0000 | [diff] [blame] | 16 | <link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" /> |
syeshin | f3d0d4b | 2005-07-27 18:33:03 +0000 | [diff] [blame] | 17 | <title>Editing XML schema properties</title> |
syeshin | 8f07783 | 2005-09-06 04:22:45 +0000 | [diff] [blame] | 18 | </head> |
syeshin | f3d0d4b | 2005-07-27 18:33:03 +0000 | [diff] [blame] | 19 | <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, |
| 23 | such as its namespace and prefix.</p><div class="skipspace"><p>The following instructions were written for the Resource perspective, |
| 24 | but they will also work in many other perspectives. </p> |
| 25 | <p>To edit an |
| 26 | XML 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 |
| 29 | Navigator 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 |
| 32 | the current namespace.</span> Element and attribute names that are associated |
| 33 | with 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 |
| 35 | this schema.</span> A namespace is a URI that provides a unique name |
| 36 | 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 |
| 37 | namespace 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 |
| 41 | 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 |
| 42 | XML schema instance to be qualified by the prefix that is associated with |
| 43 | the schema namespace; otherwise, select <span class="uicontrol">unqualified</span>.</li> |
| 44 | <li class="skipspace"><span>The <span class="uicontrol">blockDefault</span> value.</span> This |
| 45 | field determines whether the types or elements in the schema may be replaced |
| 46 | by 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 |
| 48 | you want elements in an XML schema instance to be qualified by the prefix |
| 49 | that 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 |
| 51 | field determines whether the types or elements in the schema may be derived |
| 52 | from.</li> |
| 53 | <li class="skipspace"><span>The <span class="uicontrol">version</span> value.</span> Type the |
| 54 | version 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 |
| 56 | the appropriate ISO-IETF (for example, en-us) tag in this field. This tag |
| 57 | may be inserted in documents to specify the language used in the contents |
| 58 | and 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 |
| 62 | to provide any information about this XML schema.</span> The <span class="uicontrol">Documentation</span> page |
| 63 | is used for human readable material, such as a description, and the <span class="uicontrol">App |
| 64 | Info</span> page can be used to provide information for applications. </li> |
| 65 | </ol> |
| 66 | </div> |
syeshin | f3d0d4b | 2005-07-27 18:33:03 +0000 | [diff] [blame] | 67 | </body> |
| 68 | </html> |