Project

Profile

Help

Bug #789

closed

XQuery pragmas, tokenizing

Added by Anonymous almost 18 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
XQuery conformance
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Legacy ID:
sf-1508464
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

Description

SourceForge user: mhkay

Saxon attempts to tokenize the content of an XQuery

extension expression (pragma) before examining the

QName to see whether it is a recognized pragma. This

strategy fails if the pragma uses lexical constructs

that the tokenizer cannot handle, or if the

tokenization rules are different from those of XQuery

itself. For example, it fails if the pragma contains a

"#" character.

Moreover, Saxon does not yet implement the new rule in

the XQuery grammar that the QName at the start of the

pragma contents must either represent the entire pragma

contents, or must be terminated by whitespace.

Source fix: replace the contents of the method

parseExtensionExpression (net.sf.saxon.QueryParser,

line 2103) by the contents of the attached file. Note

that this new version of the method incorporates the

changes for bug 1508451.

Test cases: K-ExtensionExpression-4/6/8 in XQTS,

qischema101 et seq in the Saxon test suite.


Files

parseExtensionExpression.java (9.56 KB) parseExtensionExpression.java Anonymous, 2006-06-19 08:30

No data to display

Please register to edit this issue

Also available in: Atom PDF