[Bug 2441] xqx: character references

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2441





------- Comment #16 from maxim.orgiyan@oracle.com  2006-09-29 00:41 -------
> > "Each predefined entity reference is replaced by the character it represents
> > when the string literal is processed."
> 
> There are five predefined entities, including amp and that means that &
> gets replaced by an ampersand character. The whole point of writing &
> rather than & is to _stop_ it being used as markup so it is absolutely clear
> that in XQuery as in XML 
> Ӓis the 7 characters 7 # 1 2 3 4 ; not a reference to the character
> with codepoint 1234. It would be absolutely bizare if Xquery were defined
> otherwise, as it would be using XML syntax with completely different semantics.
> 
> > Are string-length("abc𝅖def") and string-length("abc𝅖def")?
> > at least one XQuery processor I tried resolves these two strings to the same
> > string value,
> bugs happen, report it as a bug to that system's maintainers, That is
> unquestionably a bug.

>>> Ok. Well, I would interpret this in the
>>> same way. My point, however, is that
>>> this is not stated anywhere in the XQuery spec - that 
>>> what I mean by "ambiguity".
>>>
>>> I am validating w/ Jim whether this is the intended meaning.

Received on Friday, 29 September 2006 00:41:11 UTC