Comments (3)
It's increasingly difficult to justify leaving any XQuery FLWOR constructs out of XPath. The only place I'd draw the line is where the semantics can only be described in terms of "tuple of variable bindings", because (a) that requires internal machinery in an XPath engine that's not otherwise needed, and (b) the only things it enables are things that aren't remotely useful, like being able to order the sequence of tuples independently of any of its input sequences.
from qtspecs.
This interacts with the for member
syntax when that is part of the SimpleForClause
. Specifically, it means that SimpleForClause
cannot be expressed as:
SimpleForClause ::= "for" "member"? SimpleForBinding (("," | "for") SimpleForBinding)*
as it would break the semantics of for member
expressions due to the for
keyword switching to sequence iteration, but not being able to easily identify that from the parse tree. The separator would also need to be ("," | "for" "member"?)
to support mixing array and sequence for expressions.
As such, this would need to be done on the ForExpr
as originally proposed (which would continue to work if/when extended to maps):
ForExpr ::= (SimpleForClause)+ "return" ExprSingle
from qtspecs.
Fixed by PR #344.
from qtspecs.
Related Issues (20)
- allow explicit type expressions in XPath variable bindings HOT 2
- Errors in F&O spec examples HOT 1
- nondeterministic vs non-deterministic HOT 1
- Placement of fn:atomic-equal in the specification
- Coercion Rules: Unifications HOT 4
- XSLT: Rules for on-no-match="shallow-copy-all" HOT 1
- Predicates: Support for numeric sequences HOT 14
- EBV 4.0 HOT 11
- Foxpath integration HOT 2
- FLWOR: Variable Bindings, coercion HOT 2
- Annotations: Make default namespace explicit HOT 6
- XQuery, XQFO: Edits (pool)
- array:members-at HOT 7
- Arrays: Representation of single members of an array HOT 9
- map:empty, map:exists ← array:empty, array:exists HOT 11
- fn:boolean: EBV support for more item types HOT 3
- Revise appendix D.4 of F+O: Illustrative user-written functions
- Add creation function for `csv-row-record` type
- Review names of record types
- Add support for CSV 'dialect' features covered by the OKFN's Frictionless Data CSV spec in `fn:parse-csv` and related functions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qtspecs.