[relaxng-user] Re: Jing and libxml2 is right, Trang is wrong
David Tolpin
dvd at davidashen.net
Sat Mar 6 13:03:08 ICT 2004
> Misusing and implicit <group/> for a <choice/> would leave to schemas
> that would be valid but behave in an unexpected manner (for the author
> who would have made the error) while this restriction raises a schema
> error which cannot be ignored and that can be considered safer.
1) Only in nested grammars. In top-level grammars this will be cut off
by restrictions on start pattern immediately.
2) As well as any other implicit grouping. Why do you think
<define name="contact-info">
<ref name="phone-no"/>
<ref name="e-mail"/>
</define>
is less confusing than the same in <start>
?
3) Group can be taken for choice, not the other way; which means
that the pattern fails for a simple context, not for a complex one.
Thus this confusion will be easily discovered.
Has there been a single real case of this confusion?
More information about the relaxng-user
mailing list