[Bug 4765] [XQX] normalization of <xqx:attributeValue> element in <xqx:attributeConstructor> different for equivalent documents

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





------- Comment #3 from andrew.eisenberg@us.ibm.com  2007-08-14 20:17 -------
I'd like to add a further explanation to Jim's response.

Both of the fragments that you've provided will produce attr="&#x9;" when the
XQueryX stylesheet is applied.

The XQueryX generated for some of the Const-attr-ws-* test cases was likely
incorrect until I applied a fix a week or so ago.

Let's consider Constr-attr-ws-2:

(: Name: Constr-attr-ws-2 :)
(: Written by: Andreas Behm :)
(: Description: Attribute normalization tab :)

<elem attr="    "/>


The XQueryX generate for this is now includes the following fragment:

          <xqx:attributeConstructor>
            <xqx:attributeName>attr</xqx:attributeName>
            <xqx:attributeValue> </xqx:attributeValue>
          </xqx:attributeConstructor>

The tab in the XQuery has become a space in XQueryX, so that both will generate
the same result.


Now consider Constr-attr-ws-5:

(: Name: Constr-attr-ws-5 :)
(: Written by: Andreas Behm :)
(: Description: Attribute normalization char ref &#x9; :)

<elem attr="&#x9;"/>


The XQueryX generate for this is now includes the following fragment:

          <xqx:attributeConstructor>
            <xqx:attributeName>attr</xqx:attributeName>
            <xqx:attributeValue>&#x9;</xqx:attributeValue>
          </xqx:attributeConstructor>

Again, both the XQuery and XQueryX will produce the same result.

Received on Tuesday, 14 August 2007 20:17:47 UTC