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

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

Previous sample | Next sample

Author: James Clark
Origin: Testsuite for Relax NG


ElementsAttributes
dataeg:comment | type |
elementeg:comment |
emptyeg:comment |
grammareg:comment |
nameeg:comment |
starteg:comment |



Correct schema

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


Valid document:
<foo>X</foo>