Re: [xml-dev] RELAX NG: Are Grammar Elements Always Required to Contain a Start Child Element?

From
Radu Cernuta <>
To
"Rudick, Tom" <>
Date
2007-09-19T17:54:06Z
ID
<>
Thread
Re: [xml-dev] RELAX NG: Are Grammar Elements Always Required to Contain a Start Child Element?
Hi,

Take a look at section 4.7: "If include element has a start component, then the grammar element must have a start component".

Greetings,
Radu Cernuta



2007/9/19, Rudick, Tom <[email protected]>:
Hello All,
 
I am somewhat new to RELAX NG and just starting to get my feet wet with more complex topics.  I am trying to create a "modular" schema by making use of the <include> element.  I have followed the schemas used in the RELAX NG Tutorial (http://www.oasis-open.org/committees/relax-ng/tutorial.html) in section 9.3 to merge grammars using the <include> element.
 
However, both my current editor (OxygenXML) and jing, tell me that the document to be included is 'missing "start" element' and that it is invalid.  I have noticed that in section 4.18 of the RELAX NG Specification (http://www.oasis-open.org/committees/relax-ng/spec-20011203.html#IDASNZR ) is stated, "A grammar must have a start child element." 
 
Does this mean that I cannot correctly create a schema that does not have a start element, even though it is to be included in another schema?  Or am I interpreting section 4.18 incorrectly?
 
Thanks in advance,
-Tom Rudick