Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Issues with lexical analysis of _keywords_ in SequenceType #75
There are some cases where the appearance of "div" seems to be recognized as the keyword instead of a reference to a div element. Here are cases that work just fine:
Here are cases that don't seem to work:
let $div as element(div) := <div/> return $div
if (fn:empty($node/*:div)) then "bad" else "ok"
This is just a subclass of two distinct problems (in fact three but for the last one there's already an issue raised -> #9 ):
The problem in general is that xquery is a context sensitive grammar and lexical analysis of such language is not an easy task.