[Bug 4233] ":" in PI target names not a parsing error

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4233

           Summary: ":" in PI target names not a parsing error
           Product: XML Query Test Suite
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: minor
          Priority: P2
         Component: XML Query Test Suite
        AssignedTo: andrew.eisenberg@us.ibm.com
        ReportedBy: nick@cbcl.co.uk
         QAContact: public-qt-comments@w3.org


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

Received on Tuesday, 16 January 2007 12:50:34 UTC