After you create an XML schema, you can edit its various properties,
such as its namespace and prefix.
The following
instructions were written for the Resource perspective, but they will
also work in many other perspectives.
To edit an XML schema's
properties follow these steps:
- Create a new XML schema or double-click an existing schema in the
Navigator view. It will automatically open in the XML schema editor.
- In the Properties view, click the General tab.
- You can change the Prefix associated with
the current namespace. Element and attribute names that are associated
with this namespace will be prefixed with this value.
- You can also edit the Target namespace
for
this schema. A namespace is a URI that provides a unique name
to associate with all the elements and type definitions in a schema.
- Click
Advanced if you want to add more
namespace declarations to your XML schema.
- Click the Other tab. You can
modify the following values in this page.
- The
attributeFormDefault value. Select
qualified if you want attributes in an
XML schema instance to be qualified by the prefix that is associated with
the schema namespace; otherwise, select unqualified.
- The blockDefault value. This
field determines whether the types or elements in the schema may be replaced
by elements or types derived from them. The effect of specifying the
blockDefault attribute is equivalent to specifying a block attribute on every
type definition and element declaration in the schema. You can either select
#all (nothing may be replaced by derivations),
extension (nothing may be replaced by derivations-by-extension),
restriction (nothing may be replaced by
derivations-by-restrictions ) or substitution (nothing may be
replaced by derivations-by-substitution).
- The elementFormDefault value. Select qualified if
you want elements in an XML schema instance to be qualified by the prefix
that is associated with the schema namespace; otherwise, select unqualified.
- The finalDefault value. This
field determines whether the types or elements in the schema may be derived
from. The effect of specifying the final default attribute is equivalent to
specifying a final attribute on every type definition and element declaration in
the schema. If you select #all, no types or elements in the
schema may be derived from. If you select extension, no types
or elements in the schema may be derived from using extension. If you select
restriction, no types or elements in the schema may be derived
from using restriction.
- The version
value. Type the version number of the schema in the
version field.
- The xml:lang value. 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.
- Click the Documentation tab if you want
to provide any information about this XML schema. The Documentation page
is used for human readable material, such as a description, and the App
Info page can be used to provide information for applications.