W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2007

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

From: <bugzilla@wiggum.w3.org>
Date: Tue, 16 Jan 2007 12:50:15 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1H6nlX-0001si-Fh@wiggum.w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:46 GMT