About xsd:schema Properties

The root element of every XML Schema document is the xsd:schema element. The xsd:schema element has the properties described in Table 60. Click the Tree tab, and then click the Schema node to view the properties for the xsd:schema element.

Property
Description
Type
The type is always Schema.
Namespace

The namespace for the Schema node is usually xsd, but you can change it.

Target Namespace
This is the namespace that elements and attributes defined in an instance document belong to. For example, suppose you define the following:
<xsd:schema ... targetNamespace="http://myNS">
               

              
<xsd:element name="myelement"/>
                   

                
In an instance document, the following declarations conform with the target namespace:
<myelement xmlns="http://myNS"/>
               
<myns:myelement xmlns:myns="http://myNS"/>
               

            
However, the following declaration does not conform:
<myns:myelement xmlns:myns="http://anotherNS"/>
               

            
Version
Use this property as a convenient way to track the revisions of your XML Schema document.
Default Element Form
An element or attribute's form is either qualified or unqualified. A form of qualified means that each time an element or attribute is referenced in the schema document, you must specify the prefix of its namespace. Every element and attribute has a form attribute. If it is not explicitly defined, the schema processor checks the default attribute form specified for the Schema node. For example:
<xs:schema elementFormDefault="qualified" 
               

              
targetNamespace="http://myNs" 
                   
xmlns:myns="http://myNS">
                   

                
  <xs:element name="topElem"> ....
</xs:element>
                   
<xs:element name="anElem">
                   
 <xs:complexType>
                   

                
<xs:sequence> <xs:element ref="myns:topElem"> ...

If the form for the element topElem (or, the default form for elements) was defined to be unqualified, the reference could have used ref="topElem".

Default Attribute Form
Default Blocked Definitions
If an element does not have its own blocked or final definition, the schema processor uses the default blocked or final definition you specify here.
Default Final Definitions
Table 60. xsd:schema Properties

DTD Editor

The Stylus Studio DTD Editor lets you visually develop Document Type Definitions (DTD) to structure XML documents. The DTD Editor also includes tools and utilites for validating XML against DTD's, converting DTD's, and generating DTD's.

XML Generator

Create sample XML instance documents from any XML Schema using the XML Generator. The generated XML document is always valid, well-formed XML!

XML Syntax Help - Intelligent XML Editing

Stylus Studio's XML Editors feature Intelligent XML Schema/DTD-Aware Code Sensing and context sensitive XML code auto-completion. Simplify XML editing with Stylus Studio today.

Flat File to XML Mapper

Convert any flat file to XML in 3 clicks or less using the Stylus Studio Flat File to XML Mapper. Supports tons of different file encodings: UTF-8, UTF-16, US-ASCII, ISO-8859-1, and more.

Stylus Most Wanted

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.