Donate Share

Saxon XSLT and XQuery Processor

Tracker: Bugs

5 Parsing failure with "element and X" - ID: 768422
Last Update: Comment added ( mhkay )

A parsing failure occurs if the word "element" or
"attribute" is used as the name of an element or
attribute and is followed by an operator such as "and"
or "div". For example:

$x[@element and @code]

The problem arises because of the introduction of the
XQuery constructs "element E { ... }" and "attribute E
{ ... }".

Workaround: use parentheses, for example

$x[(@element) and @code]

test case added: bug02

Michael Kay


Michael Kay ( mhkay ) - 2003-07-09 12:41

5

Closed

Fixed

Michael Kay

XPath conformance

v7.6

Public


Comment ( 1 )

Date: 2003-07-11 09:57
Sender: mhkayProject Admin

Logged In: YES
user_id=251681

Fixed in 7.6.5


Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
status_id Open 2003-07-11 09:57 mhkay
resolution_id None 2003-07-11 09:57 mhkay
close_date - 2003-07-11 09:57 mhkay