Project

Profile

Help

Bug #5647

closed

"String constructors" and character escaping in XQuery?

Added by Norm Tovey-Walsh over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
XQuery conformance
Sprint/Milestone:
-
Start date:
2022-08-17
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
10, 11, trunk
Fix Committed on Branch:
10, 11, trunk
Fixed in Maintenance Release:
Platforms:
.NET, Java

Description

According to the XQuery spec,

Character entities are not expanded in string constructor content. Thus, [&lt;] evaluates to the string "&lt;", not the string "<".

So I think one would expect this query:

``[good &amp; bad]``
=> parse-xml-fragment()

to return good & bad. But SaxonJ claims the input is not well formed because, I think, the "&" has been expanded.

I've not previously encountered "string constructors" before, so I'm not sure.

Please register to edit this issue

Also available in: Atom PDF