[Bug 6852] New: Scripting grammar ambiguity

http://www.w3.org/Bugs/Public/show_bug.cgi?id=6852

           Summary: Scripting grammar ambiguity
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Scripting Extensions
        AssignedTo: jim.melton@acm.org
        ReportedBy: gabriel.petrovay@28msec.com
         QAContact: public-qt-comments@w3.org


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 "with" with "value" in the
ExitExpr


Best regards,
Gabriel Petrovay
28msec Inc.


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Tuesday, 28 April 2009 17:28:38 UTC