blob: aed5ae65974980d3dd7e81d35669d5aa59209675 [file] [log] [blame]
<?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 lang="en-us" xml:lang="en-us">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta name="copyright" content="Copyright (c) 2000, 2009 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" />
<meta name="DC.rights.owner" content="(C) Copyright 2000, 2009" />
<meta content="public" name="security" />
<meta content="index,follow" name="Robots" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta content="task" name="DC.Type" />
<meta name="DC.Title" content="Editing XML schema properties" />
<meta name="abstract" content="After you create an XML schema, you can edit its various properties, such as its namespace and prefix." />
<meta name="description" content="After you create an XML schema, you can edit its various properties, such as its namespace and prefix." />
<meta content="XML schema editor, XML schema properties, XML schema files, editing properties" name="DC.subject" />
<meta content="XML schema editor, XML schema properties, XML schema files, editing properties" name="keywords" />
<meta content="XHTML" name="DC.Format" />
<meta content="tedtschm" name="DC.Identifier" />
<meta content="en-us" name="DC.Language" />
<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
<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="section"><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 schema's properties, complete the
following steps:</p>
</div>
<ol>
<li class="stepexpand"><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="stepexpand"><span>In the Outline view, click <span class="uicontrol">Directives</span>.</span>
</li>
<li class="stepexpand"><span>In the Properties view, click the <span class="uicontrol">General</span> tab.</span>
</li>
<li class="stepexpand"><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="stepexpand"><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.</li>
<li class="stepexpand"><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.
</li>
<li class="stepexpand"><span>Click the <span class="uicontrol">Extensions</span> tab if you
want to add application information elements to your annotations of
schema components. </span> The <span class="uicontrol">Extensions</span> page
allows you to specify the schema and add XML content to your annotations.
</li>
<li class="stepexpand"><span>Click the <span class="uicontrol">Advanced</span> tab if you want
to define the following additional schema attributes: </span> <ul>
<li><span class="uicontrol">Prefix for elements</span> (elementFormDefault)</li>
<li><span class="uicontrol">Prefix for attributes</span> (attributeFormDefault)</li>
<li><span class="uicontrol">Block default</span> (blockDefault)</li>
<li><span class="uicontrol">Final default</span> (finalDefault)</li>
</ul>
</li>
</ol>
</div>
</body>
</html>