[xquery-talk] Necessary whitespace
g at 28.io
Mon Apr 27 02:18:28 PDT 2015
I agree with Christian on the parses/doesn't parse classification.
My understanding is as follows: 3 and div are non-delimiting terminal
symbols, and hence must be separated by a whitespace.
This is specified here:
12!(12 div.) doesn't parse because the . after a QName requires a
whitespace (. and - are listed as exceptions in the above link). The
same applies to div-.
1<<a>2</a> doesn't parse because << would be recognized as a token.
1<<<a>2</a> parses though.
I hope it helps!
On Mon, Apr 27, 2015 at 10:12 AM, Christian Grün
<christian.gruen at gmail.com> wrote:
> Hi Benito,
> These ones are valid:
>> 12!(.div 3)
> ...and these ones are not:
>> 12!(12 div.)
>> 12 div-3
>> 3!(12 div-.)
> It would take some time to elaborate all the reasons for that (I would
> surely need to look it up as well), but "12 div-3" is maybe easy to
> explain: div-3 is also a valid name test and, thus, path expression.
> talk at x-query.com
More information about the talk