[relaxng-user] Ambiguity in RNC grammar

Jeff Rafter lists at jeffrafter.com
Sat May 8 11:04:37 ICT 2004


> Therefore, a sequence like:
>
> xsd:int-xsd:byte
>
> consists of three tokens, a CName 'xsd:int-xsd', an invalid token ':'
> and an NCName 'byte'. Jing must check the datatype name before scanning
> the next token, or you would get a syntax error. Other processors might
> do it in reverse order.

Good to hear-- I currently catch this error at tokenization. Though, I don't
think that my tokenizer would actually consider this as three tokens-- it
would see it as a single token which was an invalid XML name. I don't know
if the difference is fundamental or not. I suspect not.

Thanks again,
Jeff Rafter



More information about the relaxng-user mailing list