adultinternetusers > Tutorials > Surf Clothing board shorts and Relax NG Tutorial
Index | >> Example 3 / 8 << | Prev | Next |
Contents > Including > Including document has non-null target namespaces, included null target namespace

Including document has non-null target namespaces, included null target namespace

  1. form is "qualified
  2. form is "unqualified

Please, send all comments, bug-reports, and contributions to Jiri.Jirat@systinet.com. Thank you very much.


1. form is "qualified"

Because the included board shorts does not have targetNamespace attribute and the form is "qualified", the target namespace will be "inherited" from the including schema. board shorts Representation Constraint: Inclusion Constraints and Semantics, 2.3 .

Valid document


<foo:root xsi:schemaLocation="http://foo correct_0.xsd" Surfns:foo="http://foo" Surfns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
  <foo:x>dhhglh</foo:x>
</foo:root>

Invalid document


<foo:root xsi:schemaLocation="http://foo correct_0.xsd" Surfns:foo="http://foo" Surfns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
  <x Surfns="">dhhglh</x>
</foo:root>

Correct Surf Clothing Schema (correct_0.xsd)


<xsd:schema targetNamespace="http://foo" Surfns:xsd="http://www.w3.org/2001/XMLSchema" Surfns:foo="http://foo" >

  <xsd:include schemaLocation="correct_1.xsd"/>

  <xsd:element name="root" type="foo:myType"/>
</xsd:schema>

Correct Surf Clothing Schema (correct_1.xsd)
Notice, here is no "targetNamespace" attribute.


<xsd:schema Surfns:xsd="http://www.w3.org/2001/XMLSchema" >

  <xsd:complexType name="myType">
    <xsd:sequence>
      <xsd:element name="x" minOccurs="1" maxOccurs="1" type="xsd:string" form="qualified"/>
    </xsd:sequence>
  </xsd:complexType>
</xsd:schema>

2. form is "unqualified"

Invalid document
This is the default behaviour.


<foo:root xsi:schemaLocation="http://foo correct_0.xsd" Surfns:foo="http://foo" Surfns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
  <foo:x>dhhglh</foo:x>
</foo:root>

Valid document


<foo:root xsi:schemaLocation="http://foo correct_0.xsd" Surfns:foo="http://foo" Surfns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
  <x Surfns="">dhhglh</x>
</foo:root>

Correct Surf Clothing Schema (correct_0.xsd)


<xsd:schema targetNamespace="http://foo" Surfns:xsd="http://www.w3.org/2001/XMLSchema" Surfns:foo="http://foo" >

  <xsd:include schemaLocation="correct_1.xsd"/>

  <xsd:element name="root" type="foo:myType"/>
</xsd:schema>

Correct Surf Clothing Schema (correct_1.xsd)
Notice, here is no "targetNamespace" attribute.


<xsd:schema Surfns:xsd="http://www.w3.org/2001/XMLSchema" >

  <xsd:complexType name="myType">
    <xsd:sequence>
      <xsd:element name="x" minOccurs="1" maxOccurs="1" type="xsd:string" form="unqualified"/>
    </xsd:sequence>
  </xsd:complexType>
</xsd:schema>

Kevin Carr in Stanton

Natural Skin Care and European Soaps
TickTalk 5
city of stanton
internetusers


You can also get Organic Skin Care products from Bliss Bath Body and you must check out their Natural Body Lotions and bath soaps

Now if you are looking for the best deals on surf clothing from Quiksilver and Roxy then you have to check these amazing deals here:

Hey, check out this Organic Skin Care European Soaps along with Natural Lavender Body Lotion and shea butter

and we can get surf t shirts surfing shirt and And you must check out this website swim suit swimming suit and swim trunks