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

All > Relax NG > Simplification - combine attribute > Test 196

Previous sample | Next sample

Author: James Clark
Origin: Testsuite for Relax NG


ElementsAttributes
elementname |
empty
grammar
startcombine | name |

ZVON comment: For each grammar element, all start elements are combined together. There must not be more than one start element with that name that does not have a combine attribute.

Incorrect schema

<element name="foo" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns="http://relaxng.org/ns/structure/1.0" >
     <grammar>
          <start name="x">
               <element name="bar1">
                    <empty/>
               </element>
          </start>
          <start name="x" combine="interleave">
               <element name="bar2">
                    <empty/>
               </element>
          </start>
          <start name="x">
               <element name="bar3">
                    <empty/>
               </element>
          </start>
     </grammar>
</element>