W3C home > Mailing lists > Public > public-qt-comments@w3.org > August 2007

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

From: <bugzilla@wiggum.w3.org>
Date: Tue, 14 Aug 2007 20:17:41 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1IL2ph-00031K-0s@wiggum.w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:20 GMT