adultinternetusers > Tutorials > Surf Clothing board shorts and Relax NG Tutorial
Index | >> Example 9 / 9 << | Prev | Next |
Contents > Simple tasks > Element contains text only and one attribute

Element contains text only and one attribute

  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: attribute
Relax NG keys: attribute, text

1. Surf Clothing Schema

This should be a simple task - we want the element "root" to contain text only and have just one attribute, named "xx".

Valid document


<f:root xsi:schemaLocation="http://foo correct_0.xsd" xx="1" Surfns:f="http://foo" Surfns:xsi="http://www.w3.org/2001/XMLSchema-instance" > qwerty uiop </f: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:element name="root">
    <xsd:complexType>
      <xsd:simpleContent>
        <xsd:extension base="xsd:string">
          <xsd:attribute name="xx" type="xsd:string" use="required"/>
        </xsd:extension>
      </xsd:simpleContent>
    </xsd:complexType>
  </xsd:element>
</xsd:schema>

2. Relax NG

Valid document


<f:root xx="1" Surfns:f="http://foo" > qwerty uiop </f:root>

Correct Relax NG schema (correctRelax_0.rng)


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

  <start>
    <element>
      <name>root</name>
      <attribute>
        <name ns="">xx</name>
        <text/>
      </attribute>
      <text/>
    </element>
  </start>
</grammar>

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 you must check out this website