[Bug 3446] [XQueryX] constructing attribute values with whitespace characters

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


jim.melton@acm.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED




------- Comment #9 from jim.melton@acm.org  2006-08-01 00:52 -------
Clearly, I should not be trying to resolve complex issues (which whitespace is
for me) in the evening after a very long day.  Thanks to Mike and David both
for perserving in fact of my, er, ill-advised "solution". 

Now that I have worked on this while I was (more nearly) awake, I have done the
following:

* Always: quoted #xD (CR), #x85 (NEL), and #x2028 (LINE SEPARATOR) per "XSLT
2.0 and XQuery 1.0 Serialization", Section 5 (XML Output Method), paragraph
beginning "A consequence of this rule..."

* Additionally, in attribute nodes: quoted #xA (NL) and #x9 (TAB) per the same
paragraph. 

I have *not* quoted any of the non-white space characters in the ranges #x1
through #x1F and #x7F through #x9F, even though that same paragraph says they
should be represented as character references. 

Furthermore, although I have always quoted ampersands (by making them into
character references) and doubled double-quotes, I have not quoted
less-than/left-angle-bracket characters ("<").  QUESTION: Should I?

I've run a number of tests and believe that this is now resolved.  Therefore, I
am once again marking it FIXED and invite further testing, comment, etc. so it
can eventually be marked CLOSED.

Thanks again!

Received on Tuesday, 1 August 2006 00:52:57 UTC