Must the Literal in a Nodetest be an NCName?

In XPath section 2.3, is it an error if the literal is not a valid NCName?

For example, Saxon currently reports no error for

select="processing-instruction('*')"

Should it?

(It's not clear why the syntax uses a literal rather than an NCName here.
All other names to be matched are written as QNames rather than literals.
It's hard to believe that the syntax was deliberately designed to allow use
of non-name literals which will never match anything, but that seems to be
the strict reading of the current spec.)

Mike Kay

Received on Wednesday, 1 November 2000 10:47:40 UTC