On 06/05/18 01:06, C. M. Sperberg-McQueen wrote:
> A simpler approach, for those slightly less habituated to consulting
> the text of a specification, would be to check whether "ʿmq" can be
> coerced into the type xs:NCName, which can be done by issuing the
> to see whether it returns the NCName ʿmq or raises an error.
There's also the convenient XPath 2 expression "castable as", which
returns true or false, e.g.
"ʿmq" castable as xs:NCName