[Bug 3776] fn:codepoints-to-string should allow XML 1.1 characters

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





------- Comment #6 from per@bothner.com  2006-09-29 16:51 -------
(In reply to comment #4)
> I meant if XML 1.0 is in use, XML 1.1-specific character are considered
> invalid, while if XML 1.1 is in use, the full range of XML 1.0+1.1 characters
> are valid.

Why?  The assumption is that XQuery is only useful for data from or destined
for XML text files, and that there is no use for any kind of string that can't
written portably into an XML file.  But XQuery is more generaly useful for many
kinds of  data that has the nested structure of XML, not just the physical
structure.

The infoset specification says about characters:
  [character code] The ISO 10646 character code (in the range 0 to #x10FFFF,
  though not every value in this range is a legal XML character code) of the
  character.

By reference, the XQuery Data Model would also seem to allow all character
codes in that same range.  After all the data Model explicitly allows other
values that cannot be represented as valid XML.

Received on Friday, 29 September 2006 16:51:37 UTC