Page 2

Set the schema attributes and namespace parameters, which are not required parameters but various XML schema development tools use the schema attributes and namespace parameters to validate the XSD.

   Namespace: Defines the XML vocabulary used in the schema, which is comprised of unique element and attribute names. The namespace defines any elements and attributes in the schema that use the prefix of that namespace. Each vocabulary used should have its own namespaces to enable the XML parser to resolve ambiguities that can exist between identically named elements or attributes. In the example that follows, the element lib:Title is defined in the XML vocabulary located at http://www.library.com.
<?xml version="1.0"?>
<Book xmlns:lib="http://www.library.com">
   <lib:Title>Sherlock Holmes</lib:Title>
   <lib:Author>Arthur Conan Doyle</lib:Author>
</Book>

   Location: Defines the Uniform Resource Identifier (URI) of the namespace, usually using Web address conventions. You do not need to define the vocabulary of a namespace but usually the namespace URI location contains either a Document Type Definition (DTD) or an XML schema that defines the precise data structure of the XML. To add another Namespace declaration, click the space below the first Namespace and Location entries and type the Namespace declaration.

   Target Namespace: Specifies the URI of a DTD or XML schema that defines any new elements and attributes created in the XML instance. The XML parser uses the target namespace to validate the XML, ensuring that any elements and attributes used in the XML exist in the declared namespace. The XML parser also checks the target namespace for other constraints on the structure and datatype of the elements and attributes used. If the target and default namespaces are different, you can choose the namespace in from the list of the type property. The type list is populated with the namespaces that are defined on this page.

Default Namespace: Specifies the URI of a DTD or DML schema that implicitly defines any element within the XML schema that is not explicitly defined, with the prefix of another namespace.

Element Form Default/Attribute Form Default: The elementFormDefault and attributeFormDefault declarations are interdependent. The following describes the results of specifying the various combinations of these declarations         

Element form default value

Attribute form default value

Results

Not specified

Not specified

No rules define how globally and locally declared elements and attributes must be defined.

Not specified

qualified

All locally and globally declared attributes must be namespace qualified.

Not specified

unqualified

All locally and globally declared attributes must not be namespace qualified.

qualified

Not specified

All locally and globally declared elements must be namespace qualified.

qualified

qualified

All locally and globally declared elements and attributes must be namespace qualified.

qualified

unqualified

All elements and globally declared attributes must be namespace qualified and locally declared attributes must not be namespace qualified.

unqualified

Not specified

All locally and globally declared elements must not be namespace qualified.

unqualified

qualified

Attributes and globally declared elements must be namespace qualified and locally declared elements must not be namespace qualified.

unqualified

unqualified

All globally declared elements and attributes must not be namespace qualified and locally declared elements and attributes must be namespace qualified.

unqualified

qualified

Attributes and globally declared elements must be namespace qualified and locally declared elements must not be namespace qualified.