This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
I think the following test is invalid in expecting a parsing error XPST0003 (:*******************************************************:) (: Test: K2-DirectConOther-22 :) (: Written by: Frans Englich :) (: Date: 2007-01-12T16:19:58+01:00 :) (: Purpose: ':' is not allowed in PI target names. :) (:*******************************************************:) <?invalid:char ?> The BNF states From XQuery: [105] DirPIConstructor ::= "<?" PITarget (S DirPIContents)? "?>" [152] PITarget ::= [http://www.w3.org/TR/REC-xml#NT-PITarget] From XML: [17] PITarget ::= Name - (('X' | 'x') ('M' | 'm') ('L' | 'l')) [4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender [5] Name ::= (Letter | '_' | ':') (NameChar)* which I think allows ":" in the name
You have to look into the Namespaces in XML spec for that, see: http://www.w3.org/TR/REC-xml-names/#Conformance 7. Conformance of documents [...] It follows that in a namespace-well-formed document: * No entity names, processing instruction targets, or notation names contain any colons. This spec also defines the NCName EBNF rule that replaces the original Name rule for PI Targets from the XML spec.
Thanks. Missed that.