[Bug 7163] [XQuery] String literals and predefined entity references

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





--- Comment #9 from Jonathan Robie <jonathan.robie@redhat.com>  2009-10-06 11:57:29 ---
(In reply to comment #8)
> (In reply to comment #6)
> 
> > * Because XQuery expands character entity references and XPath does not,
> > expressions containing character entitities produce different results in the
> > two languages. For instance, the value of the string literal "&" is & in
> > XQuery, and &amp; in XPath. 
> 
> perhaps the & got mangled in transit, but the above appears wrong,
> 
> 
> The string literal given, "&" is a syntax error in Xquery and the string of
> length 1 containing an ampersand in xpath. But it doesn't contain an entity
> reference so isn't an example of the first sentence. I think the intended
> example is
> 
> the string literal "&amp;" is "&" in Xquery and "&amp;" in Xpath.

Yes, the &amp; got mangled in transit. I didn't know BZ did that!

> Other minor comment:
> 
> String literals  contain entity references (not entities)
> 
> (also typo: entitities  --> entities )

Oooops .... nice catch!


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Tuesday, 6 October 2009 11:57:31 UTC