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

/ 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