<?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>6852</bug_id>
          
          <creation_ts>2009-04-28 17:28:28 +0000</creation_ts>
          <short_desc>[SX] Scripting grammar ambiguity</short_desc>
          <delta_ts>2009-05-12 18:58:45 +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>Scripting Extensions 3.0</component>
          <version>Working drafts</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gabriel Petrovay">gabriel.petrovay</reporter>
          <assigned_to name="John Snelson">john.snelson</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>24959</commentid>
    <comment_count>0</comment_count>
    <who name="Gabriel Petrovay">gabriel.petrovay</who>
    <bug_when>2009-04-28 17:28:28 +0000</bug_when>
    <thetext>The scripting grammar has the following ambiguity:

replace node exit with exit with exit

This can be interpreted in the following two ways:

replace node (exit) with (exit with exit)

replace node (exit with exit) with (exit)


Althoug the semantics of the language does not allow such construct (only simple expressions are allowed in a RenameExpr), this make life hard for parsing the language.


A solution for this would be to replace the keyword &quot;with&quot; with &quot;value&quot; in the ExitExpr


Best regards,
Gabriel Petrovay
28msec Inc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25113</commentid>
    <comment_count>1</comment_count>
    <who name="John Snelson">john.snelson</who>
    <bug_when>2009-05-12 17:04:46 +0000</bug_when>
    <thetext>Thank you for your bug report. The XQuery WG discussed this on 2009/05/12 and resolved to fix this problem by changing the syntax to &quot;exit returning&quot;. If you agree with this solution, please close this bug report.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>