Re: missing start elementt

David Rosenborg <[email protected]>
Newsgroups gmane.text.xml.relaxng.general
Message-ID <[email protected]>
It's not required for any top level grammars.
The compact to XML syntax translation is
done on a file per file basis. So the translator
doesn't really have any idea of what is a
main module or an included module. So each
file has its own top level. Therefore, the following is
perfectly valid:

schema1.rnc:

include "schema2.rnc"
start = foo

schema2.rnc:

foo = element foo { text }

Cheers,
David

David Tolpin wrote:

> why is, in the compact syntax, top-level '"grammar" "{" ... "}"' is 
> optional for the main
>
>module but required for included and referenced modules? (That is, why jing and nXML
>both require it)? The spec says that it "must be a grammar". 
>
>Why implicit grammar is not allowed?
>
>David
>
>  
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.