ZVON > References > Zvon Example Repository
Example repository: index | categories | search

All > Relax NG > Various possible syntax errors > Test 90

Previous sample | Next sample

Author: James Clark
Origin: Testsuite for Relax NG


ElementsAttributes
datatype |
eg:comment
element
empty
grammar
name
start



Correct schema

<grammar xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:eg="http://www.example.com" xmlns="http://relaxng.org/ns/structure/1.0" >
     <eg:comment/>
     <eg:comment/>
     <start>
          <eg:comment/>
          <element>
               <eg:comment/>
               <eg:comment/>
               <name>foo</name>
               <eg:comment/>
               <data type="string"/>
               <eg:comment/>
               <empty>
                    <eg:comment/>
                    <eg:comment/>
               </empty>
               <eg:comment/>
               <eg:comment/>
          </element>
          <eg:comment/>
     </start>
     <eg:comment/>
</grammar>


Valid document:
<foo>X</foo>