<?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>6218</bug_id>
          
          <creation_ts>2008-11-11 22:35:57 +0000</creation_ts>
          <short_desc>[UPD] small problem in the update grammar applet</short_desc>
          <delta_ts>2009-06-25 19:31:03 +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>Update Facility</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrew Eisenberg">andrew.eisenberg</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</assigned_to>
          <cc>jim.melton</cc>
    
    <cc>jmdyck</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>22411</commentid>
    <comment_count>0</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2008-11-11 22:35:57 +0000</bug_when>
    <thetext>The update grammar applet (http://www.w3.org/2007/01/applets/xquery-updateApplet.html) parses queries like:

$x

It also parses:

$for

It does not, however, parse:

$updating

The error message generated is:

Encountered &quot;$ updating&quot; at line 1, column 1.
Was expecting one of:
    &quot;xquery&quot; ...
    &quot;version&quot; ...
    &quot;encoding&quot; ...
    &quot;module&quot; ...
    &quot;namespace&quot; ...
    &quot;declare&quot; ...
    &quot;boundary-space&quot; ...
    &quot;preserve&quot; ...
    &quot;strip&quot; ...
    &quot;default&quot; ...
    &quot;element&quot; ...
    &quot;function&quot; ...
    &quot;option&quot; ...
    &quot;ordering&quot; ...
    &quot;ordered&quot; ...
    &quot;unordered&quot; ...
    &quot;order&quot; ...
    &quot;empty&quot; ...
    &quot;copy-namespaces&quot; ...
    &quot;no-preserve&quot; ...
    &quot;inherit&quot; ...
    &quot;no-inherit&quot; ...
    &quot;collation&quot; ...
    &quot;base-uri&quot; ...
    &quot;import&quot; ...
    &quot;schema&quot; ...
    &quot;at&quot; ...
    &quot;variable&quot; ...
    &quot;construction&quot; ...
    &quot;as&quot; ...
    &quot;return&quot; ...
    &quot;for&quot; ...
    &quot;in&quot; ...
    &quot;let&quot; ...
    &quot;where&quot; ...
    &quot;by&quot; ...
    &quot;stable&quot; ...
    &quot;some&quot; ...
    &quot;every&quot; ...
    &quot;satisfies&quot; ...
    &quot;typeswitch&quot; ...
    &quot;case&quot; ...
    &quot;if&quot; ...
    &quot;then&quot; ...
    &quot;else&quot; ...
    &quot;or&quot; ...
    &quot;and&quot; ...
    &quot;to&quot; ...
    &quot;*&quot; ...
    &quot;div&quot; ...
    &quot;idiv&quot; ...
    &quot;mod&quot; ...
    &quot;union&quot; ...
    &quot;intersect&quot; ...
    &quot;except&quot; ...
    &quot;instance&quot; ...
    &quot;of&quot; ...
    &quot;treat&quot; ...
    &quot;castable&quot; ...
    &quot;cast&quot; ...
    &quot;eq&quot; ...
    &quot;ne&quot; ...
    &quot;lt&quot; ...
    &quot;le&quot; ...
    &quot;gt&quot; ...
    &quot;ge&quot; ...
    &quot;is&quot; ...
    &quot;validate&quot; ...
    &quot;lax&quot; ...
    &quot;strict&quot; ...
    &quot;child&quot; ...
    &quot;descendant&quot; ...
    &quot;attribute&quot; ...
    &quot;self&quot; ...
    &quot;descendant-or-self&quot; ...
    &quot;following-sibling&quot; ...
    &quot;following&quot; ...
    &quot;@&quot; ...
    &quot;parent&quot; ...
    &quot;ancestor&quot; ...
    &quot;preceding-sibling&quot; ...
    &quot;preceding&quot; ...
    &quot;ancestor-or-self&quot; ...
    &quot;..&quot; ...
    &quot;document&quot; ...
    &quot;text&quot; ...
    &quot;comment&quot; ...
    &quot;processing-instruction&quot; ...
    &quot;empty-sequence&quot; ...
    &quot;item&quot; ...
    &quot;node&quot; ...
    &quot;document-node&quot; ...
    &quot;schema-attribute&quot; ...
    &quot;schema-element&quot; ...
    &quot;first&quot; ...
    &quot;last&quot; ...
    &quot;into&quot; ...
    &quot;after&quot; ...
    &quot;before&quot; ...
    &quot;insert&quot; ...
    &quot;nodes&quot; ...
    &quot;delete&quot; ...
    &quot;replace&quot; ...
    &quot;value&quot; ...
    &quot;rename&quot; ...
    &quot;copy&quot; ...
    &quot;modify&quot; ...
    &quot;update&quot; ...
    &quot;transform&quot; ...
    &quot;do&quot; ...
    &quot;type&quot; ...
    &quot;-&quot; ...
    &quot;+&quot; ...
    &quot;external&quot; ...
    &quot;ascending&quot; ...
    &quot;descending&quot; ...
    &quot;greatest&quot; ...
    &quot;least&quot; ...
    &lt;QNameToken&gt; ...
    &lt;NCNameColonStar&gt; ...
    &lt;StarColonNCName&gt; ...
    &lt;IntegerLiteral&gt; ...
    &lt;DecimalLiteral&gt; ...
    &lt;DoubleLiteral&gt; ...
    &lt;StringLiteral&gt; ...
    &quot;$&quot; &lt;QNameToken&gt; ...
    &quot;$&quot; &quot;external&quot; ...
    &quot;$&quot; &quot;xquery&quot; ...
    &quot;$&quot; &quot;version&quot; ...
    &quot;$&quot; &quot;encoding&quot; ...
    &quot;$&quot; &quot;module&quot; ...
    &quot;$&quot; &quot;namespace&quot; ...
    &quot;$&quot; &quot;declare&quot; ...
    &quot;$&quot; &quot;boundary-space&quot; ...
    &quot;$&quot; &quot;preserve&quot; ...
    &quot;$&quot; &quot;strip&quot; ...
    &quot;$&quot; &quot;default&quot; ...
    &quot;$&quot; &quot;function&quot; ...
    &quot;$&quot; &quot;option&quot; ...
    &quot;$&quot; &quot;ordering&quot; ...
    &quot;$&quot; &quot;ordered&quot; ...
    &quot;$&quot; &quot;unordered&quot; ...
    &quot;$&quot; &quot;order&quot; ...
    &quot;$&quot; &quot;empty&quot; ...
    &quot;$&quot; &quot;greatest&quot; ...
    &quot;$&quot; &quot;least&quot; ...
    &quot;$&quot; &quot;copy-namespaces&quot; ...
    &quot;$&quot; &quot;no-preserve&quot; ...
    &quot;$&quot; &quot;inherit&quot; ...
    &quot;$&quot; &quot;no-inherit&quot; ...
    &quot;$&quot; &quot;collation&quot; ...
    &quot;$&quot; &quot;base-uri&quot; ...
    &quot;$&quot; &quot;import&quot; ...
    &quot;$&quot; &quot;schema&quot; ...
    &quot;$&quot; &quot;at&quot; ...
    &quot;$&quot; &quot;variable&quot; ...
    &quot;$&quot; &quot;construction&quot; ...
    &quot;$&quot; &quot;update&quot; ...
    &quot;$&quot; &quot;as&quot; ...
    &quot;$&quot; &quot;lax&quot; ...
    &quot;$&quot; &quot;strict&quot; ...
    &quot;$&quot; &quot;return&quot; ...
    &quot;$&quot; &quot;transform&quot; ...
    &quot;$&quot; &quot;do&quot; ...
    &quot;$&quot; &quot;for&quot; ...
    &quot;$&quot; &quot;in&quot; ...
    &quot;$&quot; &quot;let&quot; ...
    &quot;$&quot; &quot;where&quot; ...
    &quot;$&quot; &quot;by&quot; ...
    &quot;$&quot; &quot;stable&quot; ...
    &quot;$&quot; &quot;ascending&quot; ...
    &quot;$&quot; &quot;descending&quot; ...
    &quot;$&quot; &quot;some&quot; ...
    &quot;$&quot; &quot;every&quot; ...
    &quot;$&quot; &quot;satisfies&quot; ...
    &quot;$&quot; &quot;case&quot; ...
    &quot;$&quot; &quot;then&quot; ...
    &quot;$&quot; &quot;else&quot; ...
    &quot;$&quot; &quot;or&quot; ...
    &quot;$&quot; &quot;and&quot; ...
    &quot;$&quot; &quot;to&quot; ...
    &quot;$&quot; &quot;div&quot; ...
    &quot;$&quot; &quot;idiv&quot; ...
    &quot;$&quot; &quot;mod&quot; ...
    &quot;$&quot; &quot;union&quot; ...
    &quot;$&quot; &quot;intersect&quot; ...
    &quot;$&quot; &quot;except&quot; ...
    &quot;$&quot; &quot;instance&quot; ...
    &quot;$&quot; &quot;of&quot; ...
    &quot;$&quot; &quot;treat&quot; ...
    &quot;$&quot; &quot;castable&quot; ...
    &quot;$&quot; &quot;cast&quot; ...
    &quot;$&quot; &quot;eq&quot; ...
    &quot;$&quot; &quot;ne&quot; ...
    &quot;$&quot; &quot;lt&quot; ...
    &quot;$&quot; &quot;le&quot; ...
    &quot;$&quot; &quot;gt&quot; ...
    &quot;$&quot; &quot;ge&quot; ...
    &quot;$&quot; &quot;is&quot; ...
    &quot;$&quot; &quot;validate&quot; ...
    &quot;$&quot; &quot;child&quot; ...
    &quot;$&quot; &quot;descendant&quot; ...
    &quot;$&quot; &quot;self&quot; ...
    &quot;$&quot; &quot;descendant-or-self&quot; ...
    &quot;$&quot; &quot;following-sibling&quot; ...
    &quot;$&quot; &quot;following&quot; ...
    &quot;$&quot; &quot;parent&quot; ...
    &quot;$&quot; &quot;ancestor&quot; ...
    &quot;$&quot; &quot;preceding-sibling&quot; ...
    &quot;$&quot; &quot;preceding&quot; ...
    &quot;$&quot; &quot;ancestor-or-self&quot; ...
    &quot;$&quot; &quot;document&quot; ...
    &quot;$&quot; &quot;insert&quot; ...
    &quot;$&quot; &quot;first&quot; ...
    &quot;$&quot; &quot;last&quot; ...
    &quot;$&quot; &quot;into&quot; ...
    &quot;$&quot; &quot;after&quot; ...
    &quot;$&quot; &quot;before&quot; ...
    &quot;$&quot; &quot;delete&quot; ...
    &quot;$&quot; &quot;replace&quot; ...
    &quot;$&quot; &quot;value&quot; ...
    &quot;$&quot; &quot;rename&quot; ...
    &quot;$&quot; &quot;copy&quot; ...
    &quot;$&quot; &quot;modify&quot; ...
    &quot;$&quot; &quot;nodes&quot; ...
    &quot;$&quot; &quot;type&quot; ...
    &quot;$&quot; &quot;attribute&quot; ...
    &quot;$&quot; &quot;comment&quot; ...
    &quot;$&quot; &quot;document-node&quot; ...
    &quot;$&quot; &quot;element&quot; ...
    &quot;$&quot; &quot;if&quot; ...
    &quot;$&quot; &quot;item&quot; ...
    &quot;$&quot; &quot;node&quot; ...
    &quot;$&quot; &quot;processing-instruction&quot; ...
    &quot;$&quot; &quot;schema-attribute&quot; ...
    &quot;$&quot; &quot;schema-element&quot; ...
    &quot;$&quot; &quot;text&quot; ...
    &quot;$&quot; &quot;typeswitch&quot; ...
    &quot;$&quot; &quot;empty-sequence&quot; ...
    &quot;(&quot; ...
    &quot;.&quot; ...
    &quot;&lt;&quot; ...
    &quot;&lt;&quot; ...
    &quot;&lt;!--&quot; ...
    &quot;&lt;!--&quot; ...
    &quot;&lt;?&quot; ...
    &quot;&lt;?&quot; ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25005</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2009-05-05 18:55:56 +0000</bug_when>
    <thetext>It looks like the solution is simply to add
    &lt;g:string process-value=&quot;yes&quot; if=&quot;update&quot;&gt;updating&lt;/g:string&gt;
to the g:production for FunctionQName in xpath-grammar.xml.
Of course, there may be other keywords that need a similar treatment.

(It seems odd to me that we don&apos;t (in effect) generate the production 
for FunctionQName automatically. It would avoid this kind of problem.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25006</commentid>
    <comment_count>2</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2009-05-05 21:38:57 +0000</bug_when>
    <thetext>I&apos;ve done some additional testing, and find that 4 of our keywords cannot be used as variable names. These are &quot;revalidation&quot;, &quot;skip&quot;, &quot;updating&quot;, and &quot;with&quot;.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25267</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2009-05-22 21:01:45 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; I&apos;ve done some additional testing, and find that 4 of our keywords cannot be
&gt; used as variable names. These are &quot;revalidation&quot;, &quot;skip&quot;, &quot;updating&quot;, and
&gt; &quot;with&quot;.
&gt; 

I just checked in a version that recognizes these all as QNames.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>