adultinternetusers > Tutorials > Surf Clothing board shorts and Relax NG Tutorial
Index | >> Example 1 / 10 << | Prev | Next |
Contents > Wildcard patterns > Attribute from any namespace

Attribute from any 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: anyAttribute
Relax NG keys: anyName

1. Surf Clothing Schema

The root element named "root" can have arbitrary number of any attributes from any namespace.

Valid document


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

Valid document


<root xsi:noNamespaceSchemaLocation="correct_0.xsd" a="1" Surfns="" Surfns:xsi="http://www.w3.org/2001/XMLSchema-instance" />

Valid document


<root xsi:noNamespaceSchemaLocation="correct_0.xsd" x="2" baz:x="2" Surfns="" Surfns:xsi="http://www.w3.org/2001/XMLSchema-instance" Surfns:baz="http://baz" />

Correct Surf Clothing Schema (correct_0.xsd)


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

  <xsd:element name="root">
    <xsd:complexType>
      <xsd:anyAttribute namespace="##any" processContents="skip"/>
    </xsd:complexType>
  </xsd:element>
</xsd:schema>

2. Relax NG

The element "anyName" says that the attribute can have any name from any namespace. The "anyName" and "nsName" elements (which represent an infinite number of names) must be repeated, so you can say only that you allow either 0+ (zeroOrMore) or 1+ (oneOrMore) such attributes. See (7.3. Restrictions on attributes).

Valid document


<root Surfns=""/>

Valid document


<root a="1" Surfns=""/>

Valid document


<root a="2" baz:x="2" Surfns="" Surfns:baz="http://baz" />

Correct Relax NG schema (correctRelax_0.rng)


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

  <start>
    <element>
      <name ns="">root</name>
      <zeroOrMore>
        <attribute>
          <anyName/>
          <text/>
        </attribute>
      </zeroOrMore>
      <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 we can get surf t shirts surfing shirt and And you must check out this website swim suit swimming suit and swim trunks