[relaxng-user] missing start elementt
David Tolpin
dvd at davidashen.net
Sun Nov 30 02:32:07 ICT 2003
> > file has its own top level. Therefore, the following is
> > perfectly valid:
> >
>
> Hmm, indeed. I must have looked at the wrong place. I am sorry for the many
> questions.
>
> Another question:
>
> test.rnc
>
> start = foo
> foo= element foo {external "testi.rnc"}
>
> testi.rnc
>
> foo|empty
>
> nXML accepts it. jing says that the reference is to undefined pattern. Does externalRef
> create a new scope?
Further on,
if I translate the grammar above using trang into XML Syntax, the referenced file is translated
into 'grammar' element, and the grammar is still invalid. If I remove the wrapping grammar element,
then the grammar is valid.
If I then translate the valid XML RNG schema into either XML or compact syntax using trang,
I get invalid grammar.
I'm lost. The question is not whether trang is perfect or not. The question is whether there is
an implicit grammar in a file consisting of a single pattern. and if there is, why nXML and jing
both complain when I try to include testi.rnc (include "testi.rnc"; either syntax error or 'not
a grammar').
David
More information about the relaxng-user
mailing list