<?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>5351</bug_id>
          
          <creation_ts>2008-01-08 18:29:25 +0000</creation_ts>
          <short_desc>[XPath] PI name test must require string literals that satisfy NCName rules</short_desc>
          <delta_ts>2009-02-23 19:12:52 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XPath 2.0</component>
          <version>Recommendation</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>6559</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jim Melton">jim.melton</reporter>
          <assigned_to name="Don Chamberlin">chamberl</assigned_to>
          <cc>andrew.eisenberg</cc>
    
    <cc>jonathan.robie</cc>
    
    <cc>tim</cc>
          
          <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>18245</commentid>
    <comment_count>0</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2008-01-08 18:29:25 +0000</bug_when>
    <thetext>Bug 5269 (http://www.w3.org/Bugs/Public/show_bug.cgi?id=5269) reported the fact that the name test processing-instruction(&quot;123ncname&quot;) is a syntactically-valid XPath (and XQuery) expression, even though the string literal &quot;123ncname&quot; cannot be transformed into a valid PITarget (which must be an NCName).  

We&apos;ve closed Bug 5269 because it was reported as an XQueryX problem, which it is not.  This bug was opened to capture the problem for XPath.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18246</commentid>
    <comment_count>1</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2008-01-08 18:30:38 +0000</bug_when>
    <thetext>The name test shown in this bug report will always result in a dynamic error.  In its teleconference on 2008-01-08, the WG decided (because the error, caused by a string literal, can be caught statically) to make it a type error (XPTY0004) if the string literal of a PI name test cannot be converted to an NCName. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18255</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2008-01-08 21:59:23 +0000</bug_when>
    <thetext>Just a reminder that whoever drafts the erratum on this should add an entry to the XPath 1.0 backwards compatibility appendix. In XPath 1.0, (and in XPath 2.0 until today), processing-instruction(&apos;123abc&apos;), like @comment(), was a legitimate if perverse way of denoting the empty node-set.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18484</commentid>
    <comment_count>3</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2008-01-23 15:26:06 +0000</bug_when>
    <thetext>*** Bug 5355 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22553</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2008-11-28 09:48:38 +0000</bug_when>
    <thetext>To resolve Bug 6238, could you please clarify whether

&quot;...PI name test cannot be converted to an NCName.&quot;

means that

processing-instruction(&quot;b &quot;)

raises XPTY0004, or is equivalent to 

processing-instruction(&quot;b&quot;)

because &quot;b &quot; can be converted to an NCName using xs:NCName(&quot;b &quot;).


</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23886</commentid>
    <comment_count>5</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2009-02-23 19:12:52 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 6559 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>