7.2. A schema Element with Every Attribute

Section 7.4.1 discusses all the possible XML schema attributes of the schema element. Listing 7.2 is a complete XML schema in which the schema element has all possible attributes. Many of the ensuing explanations in Section 7.4.1 refer to Listing 7.2.

Listing 7.2. A schema Element with Every Attribute (fullFeaturedSchema.xsd)
<xsd:schema 
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
    xmlns:ffs="http://www.XMLSchemaReference.com/examples/Ch07/fullFeaturedSchema" 
    xmlns:ra="http://www.XMLSchemaReference.com/examples/Ch07/randomAttributes" 
    xmlns="http://www.XMLSchemaReference.com/examples/Ch07/fullFeaturedSchema" 
    targetNamespace="http://www.XMLSchemaReference.com/examples/Ch07/fullFeaturedSchema" 
    elementFormDefault="unqualified" 
    attributeFormDefault="unqualified" 
    id="Full-Featured-Schema" 
    blockDefault="#all" 
    finalDefault="restriction" 
    version="FFS:1" 
    xml:lang="en-US"> 

<xsd:import 
    namespace="http://www.XMLSchemaReference.com/examples/Ch07/randomAttributes" 
    schemaLocation="http://www.XMLSchemaReference.com/examples/Ch07/randomAttributes.xsd"/> 
<xsd:include 
    schemaLocation="http://www.XMLSchemaReference.com/examples/Ch07/ffs_include.xsd"/> 

</xsd:schema> 

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.210.166