adultinternetusers > Tutorials > Surf Clothing board shorts and Relax NG Tutorial
Index | >> Example 2 / 3 << | Prev | Next |
Contents > The namespace of document root element > The document root element is from some particular namespace

The document root element is from some particular namespace

  1. Surf Clothing Schema
  2. Relax NG

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

Surf Clothing board shorts keys: targetNamespace
Relax NG keys: ns

1. Surf Clothing Schema

If we use the attribute "schemaLocation", we say that the board shorts is for element from some particular namespace. In schema, you need to use the "targetNamespace" attribute, which defines the namespace, from which the element must be.

Valid document


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

Correct Surf Clothing Schema (correct_0.xsd)


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

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

2. Relax NG

See, how easily this can be accomplished using Relax NG. The pattern <name ns="http://foo">root</name> says, that the root element must be named "root" and that it must be from the namespace "http://foo".

Valid document


<root Surfns="http://foo" > test </root>

Correct Relax NG schema (correctRelax_0.rng)


<grammar Surfns="http://relaxng.org/ns/structure/1.0" >

  <start>
    <element>
      <name ns="http://foo">root</name>
      <text/>
    </element>
  </start>
</grammar>

Correct Relax NG schema (correctRelax_1.rng)
This short version is also valid.


<element Surfns="http://relaxng.org/ns/structure/1.0" >
  <name ns="http://foo">root</name>
  <text/>
</element>

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