[Bug 27156] fn:parse-json

https://www.w3.org/Bugs/Public/show_bug.cgi?id=27156

--- Comment #3 from Jonathan Robie <jonathan.robie@gmail.com> ---
> > * If "unescape" is set to true, will invalid XML characters be replaced by
> > xFFFD, or will an error be raised instead (FOJS0002)?
> 
> This error seems to answer the question:
> 
> A dynamic error [err:FOJS0002] occurs if the value of $input contains an
> escaped representation of a character (or codepoint) that is not a valid
> character in the version of XML supported by the implementation, unless the
> unescape option is set to false.

Ah, but the specification also says this:

If the input contains escape sequences representing characters or codepoints
that are valid characters in the version of XML supported by the
implementation, the escape sequence is replaced by the character(s) that it
represents. If the input contains escape sequences representing characters or
codepoints that are not valid characters in the version of XML supported by the
implementation, the escape sequence is replaced by the Unicode replacement
character (xFFFD).

So this seems to answer the question two different ways, and they contradict
each other.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 28 October 2014 19:17:05 UTC