<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>4233</bug_id>
          
          <creation_ts>2007-01-16 12:50:15 +0000</creation_ts>
          <short_desc>&quot;:&quot; in PI target names not a parsing error</short_desc>
          <delta_ts>2007-01-17 14:32:33 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Query Test Suite</product>
          <component>XML Query Test Suite</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nick Jones">nick</reporter>
          <assigned_to name="Andrew Eisenberg">andrew.eisenberg</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>13582</commentid>
    <comment_count>0</comment_count>
    <who name="Nick Jones">nick</who>
    <bug_when>2007-01-16 12:50:15 +0000</bug_when>
    <thetext>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: &apos;:&apos; is not allowed in PI target names.       :)
(:*******************************************************:)
&lt;?invalid:char ?&gt;


The BNF states

From XQuery:

[105] DirPIConstructor 	   ::=    	&quot;&lt;?&quot; PITarget (S DirPIContents)? &quot;?&gt;&quot;
[152] PITarget 	   ::=    	[http://www.w3.org/TR/REC-xml#NT-PITarget]

From XML:

[17] PITarget	   ::=   	 Name - ((&apos;X&apos; | &apos;x&apos;) (&apos;M&apos; | &apos;m&apos;) (&apos;L&apos; | &apos;l&apos;))
[4] NameChar ::= Letter | Digit | &apos;.&apos; | &apos;-&apos; | &apos;_&apos; | &apos;:&apos; | CombiningChar | Extender
[5] Name ::=   	(Letter | &apos;_&apos; | &apos;:&apos;) (NameChar)*

which I think allows &quot;:&quot; in the name</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13587</commentid>
    <comment_count>1</comment_count>
    <who name="Martin Probst">martin</who>
    <bug_when>2007-01-16 17:35:55 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13655</commentid>
    <comment_count>2</comment_count>
    <who name="Nick Jones">nick</who>
    <bug_when>2007-01-17 11:51:21 +0000</bug_when>
    <thetext>Thanks. Missed that.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>