On 2006-12-30 16:22, Dave Pawson wrote:

> in rnc format I have
> 
> grammar {
> 
> start = Grammar
> 
> Grammar = element grammar {(Verb)+, (Noun)+ }+
> 
> and Jing tells me
> 
> error: "start" contains "oneOrMore"
> 
> Agreed the root element has one or more...
> but there is only one root element.
> 
> any clarification on the error please?

If the above construct was legal, the schema would allow you to create a 
document with more than one root element (or more correctly, _no_ root 
element), and that would not be well-formed XML.

-- 
David Håsäther

Reply via email to