You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for_all $event in /data/events /some/other/path > $event/items/value
This is quite hard to read, plus the parser needs to be whitespace aware in order to understand wh. Xpath solved this in xpath 2 and 3 with the following syntax:
every $event in /data/events satisfies /some/other/path > $event/items/value
And
some $event in /data/events satisfies /some/other/path > $event/items/value
So, we can do:
use 'for_all ... in ... '. I'm not a native English speaker, but I cannot find anything that works well and is much shorter than 'for_all ... in ... the following must evaluate to true', compared to 'for_all ... in
use the 'every .. in ... satisfies'-syntax from xpath
make the parser whitespace aware
I would prefer the 'every'-syntax, but if someone has a good suggestion for what comes after for_all...
The text was updated successfully, but these errors were encountered:
pieterbos
changed the title
expression language: for_all hard to read and whitespace aware parser needed
Expression language: for_all hard to read and whitespace aware parser needed
Jul 5, 2016
consider the following expression snippet:
This is quite hard to read, plus the parser needs to be whitespace aware in order to understand wh. Xpath solved this in xpath 2 and 3 with the following syntax:
And
So, we can do:
I would prefer the 'every'-syntax, but if someone has a good suggestion for what comes after for_all...
The text was updated successfully, but these errors were encountered: