#542 #X in XQuery character references

v8.7.3
closed
Michael Kay
5
2012-10-08
2006-06-18
Michael Kay
No

In XQuery string literals and character content, Saxon
allows a hexadecimal character literal to use a capital
X as an alternative to lower-case x. This is not
permitted by the specification.

Source fix: in net.sf.saxon.query.QueryParser, remove
the line

entity = entity.toLowerCase();

where it currently appears at line 3260 in
analyzeEntityReference(), and insert it after line 3267

if (entity.charAt(1) == 'x') {

in method parseCharacterReference().

Test case K-Literals-48 in XQTS.

Discussion