> Can I rather suggest, to be 100% clean:
>
> <grammar nsprefix="e=http://www.example.com/e" proxy="yes">
> <start>
> <element name="addressBook" ns="e">
> <zeroOrMore>
Barf! Structured attributes are evil.
> or better IMHO:
>
> <grammar proxy="yes">
> <prefix name="e" uri="http://www.example.com/e"/>
> <start>
> <element name="addressBook" ns="e">
> <zeroOrMore>
But what if you don't have a <grammar> element?
And what about order dependency? If you require <prefix> declarations
before the use of a prefix, then you've lost the order independence of the
children of <grammar>. If you don't, then I think implementation will be
tricky.
> Or any other way to define a prefix without using the namespace prefix?
Such as...
James