Attribute-Value Normalisation

Michael Ewins mik at
Wed Mar 31 18:19:22 BST 1999

Can someone help me or point me toward appropriate FAQ.

In the XML specification it says attribute values will be normalised. However,
the explanation isn't clear to me so I'll try to clear up my understanding
through an example.


I have an element MYDOC and this has an attribute that references a filename
which is CDATA.

An example document might read

<MYDOC file="c:\temp\hello.txt"/>

Will this attribute be normalised if it contains any whitespace? For example,
"space   morepsace.txt" is a valid filename on Windows but I need to know if XML
will attempt to normalise the multiple whitespace to
"space morespace.txt" or something equally wrong.

Essentially my question is, if I have a valid filename (on Windows or Mac) that
I use as an attribute value in XML can I be sure the parser will pass this on

thanks in advance for any help...

Michael Ewins
Panasonic OWL -- mik at --
home -- michael_ewins at

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as: and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list