W3C home > Mailing lists > Public > public-xml-id@w3.org > January 2005

Re: 2. Effect of normalisation step on the DOM/Infoset

From: Norman Walsh <Norman.Walsh@Sun.COM>
Date: Wed, 05 Jan 2005 10:23:53 -0500
To: Ian Hickson <ian@hixie.ch>
Cc: public-xml-id@w3.org
Message-id: <878y77zypi.fsf@nwalsh.com>
/ Ian Hickson <ian@hixie.ch> was heard to say:
| | 4 Processing xml:id Attributes
| |
| | Each xml:id attribute is processed in the following way:
|
| It is unclear whether this processing is intended to change the DOM
| (or the infoset, for that matter) or not. If one has the following
| document:
|
|    <test xml:id=" test "/>
|
| ...what would be returned by:
|
|    document.documentElement.getAttributeNS('http://www.w3.org/XML/1998/namespace', 'id');
|
| Should it be " test " or "test"?
|
| I think it should be made clear that the processing mentioned in this
| section is merely internal to the xml:id processor and does not affect
| the infoset or the DOM. (This comment obviously doesn't apply to the
| "ID Assignment" phase, where you definitely do want the infoset and
| the DOM to be updated, but that's another matter.)

On the contrary, I think the purpose of attribute value normalization is
so that down-stream processes will see the normalized value.

I think the result of processing your example with an xml:id Processor
should be the same as the result of processing this document with a
standard parser:

<!DOCTYPE test [
<!ATTLIST test xml:id ID #IMPLIED>
]>
<test xml:id=" test "/>

                                        Be seeing you,
                                          norm

-- 
Norman.Walsh@Sun.COM / XML Standards Architect / Sun Microsystems, Inc.
NOTICE: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.

Received on Wednesday, 5 January 2005 15:24:35 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:53:49 UTC