[relaxng-user] missing start elementt
David Rosenborg
darolst at pantor.com
Sat Nov 29 22:39:29 ICT 2003
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
>
>
>
More information about the relaxng-user
mailing list