This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 6852 - [SX] Scripting grammar ambiguity
Summary: [SX] Scripting grammar ambiguity
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Scripting Extensions 3.0 (show other bugs)
Version: Working drafts
Hardware: All All
: P2 major
Target Milestone: ---
Assignee: John Snelson
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-28 17:28 UTC by Gabriel Petrovay
Modified: 2009-05-12 18:58 UTC (History)
0 users

See Also:


Attachments

Description Gabriel Petrovay 2009-04-28 17:28:28 UTC
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.
Comment 1 John Snelson 2009-05-12 17:04:46 UTC
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 "exit returning". If you agree with this solution, please close this bug report.