<?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>3606</bug_id>
          
          <creation_ts>2006-08-17 09:12:55 +0000</creation_ts>
          <short_desc>[XPath] delimiting tokens</short_desc>
          <delta_ts>2007-02-25 23:47:01 +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>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>3765</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</reporter>
          <assigned_to name="Don Chamberlin">chamberl</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>11192</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-08-17 09:12:55 +0000</bug_when>
    <thetext>For unrelated reasons, I was looking at test LocalNameFromQNameFunc018, which contains the line:

declare default element namespace&quot;http://www.example.com/QNameXSD&quot;;

This test is intended to succeed, and Saxon parses it successfully; but looking at the spec, it seems this isn&apos;t allowed. 

A2.2 (in XQuery) says: 

(a) The non-delimiting terminal symbols are: ... namespace, ... StringLiteral, ... 

(b) It is customary to separate consecutive terminal symbols by whitespace and Comments, but this is required only when otherwise two non-delimiting symbols would be adjacent to each other.

Is there any good reason why StringLiteral is classified as a non-delimiting symbol?

Am I correct in saying that as the spec stands, the above line should be a syntax error?

There are other oddities in the list of non-delimiting symbols as well. For example, it includes Char. This suggests that in the production rule

[159]    	CommentContents 	   ::=    	(Char+ - (Char* (&apos;(:&apos; | &apos;:)&apos;) Char*))

the Char tokens must be separated by whitespace, whereas of course the opposite is true. I think that symbols that are used only in ws:explicit rules have no place in this list.

Also, the statement &quot;There are two exceptions to this, that of &quot;.&quot; and &quot;-&quot;, which do require a symbol separator if they follow a QName or NCName&quot; isn&apos;t quite complete: &quot;.&quot; also requires a separator if it precedes or follows a numeric literal.

I encountered this in XQuery, but it applies in principle to XPath also.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11276</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Boag">scott_boag</who>
    <bug_when>2006-08-25 15:38:02 +0000</bug_when>
    <thetext>&gt; Is there any good reason why StringLiteral is classified as a non-delimiting
&gt; symbol?

Not that I can see. In fact, I think it&apos;s contradicts &quot;&quot;&quot; and &quot;&apos;&quot; being delimiting characters.  So, yes, I think this is a bug and should be fixed.

&gt; Am I correct in saying that as the spec stands, the above line should be a
&gt; syntax error?

I would let it pass, given my statement above that there is a contradiction.

&gt;&gt; There are other oddities in the list of non-delimiting symbols as well. For
&gt;&gt; example, it includes Char. This suggests that in the production rule
&gt;&gt; 
&gt;&gt; [159]           CommentContents            ::=          (Char+ - (Char* (&apos;(:&apos; &gt;|
&gt;&gt; &apos;:)&apos;) Char*))
&gt;&gt; 
&gt;&gt; the Char tokens must be separated by whitespace, whereas of course the &gt;&gt;opposite
&gt;&gt; is true. I think that symbols that are used only in ws:explicit rules have no
&gt;&gt; place in this list.

I agree.

&gt;&gt; &quot;.&quot; also requires a separator if it precedes or follows a
&gt;&gt; numeric literal.

I agree.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11283</commentid>
    <comment_count>2</comment_count>
    <who name="Scott Boag">scott_boag</who>
    <bug_when>2006-08-25 18:49:37 +0000</bug_when>
    <thetext>Resolution accepted by WG.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14153</commentid>
    <comment_count>3</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2007-02-25 23:47:01 +0000</bug_when>
    <thetext>Closing bug because commenter has not objected to the resolution posted and more than two weeks have passed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>