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
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:
/xhtml:html/xhtml:body//xhtml:div
and
<div>Hi</div>
Here are cases that don't seem to work:
let $div aselement(div) := <div/>
return
$div
and
if (fn:empty($node/*:div)) then"bad"else"ok"
Thank you.
The text was updated successfully, but these errors were encountered:
This is just a subclass of two distinct problems (in fact three but for the last one there's already an issue raised -> #9 ):
some "keywords" not being tokenized fine when used in path expressions when used in conjunction with * wildcard
some "keywords" not being tokenized fine when used as types in SequenceType
The problem in general is that xquery is a context sensitive grammar and lexical analysis of such language is not an easy task.
I'll keep this one open (with title changed) to deal with the first issue and raise a new issue ( #76 ) for dealing with the second one.
ligasgr
changed the title
Issues with lexical analysis of _keywords_ in path expressions
Issues with lexical analysis of _keywords_ in SequenceType
May 11, 2014
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:
/xhtml:html/xhtml:body//xhtml:div
and
Here are cases that don't seem to work:
and
Thank you.
The text was updated successfully, but these errors were encountered: