Next in thread → Next in month →

Re: [xml-dev] Summary of XML line break normalization, impact of xml:space="preserve" on normalization

From
David Carlisle <>
To
Date
2003-09-08T15:12:54Z
ID
<>
Thread
Re: [xml-dev] Summary of XML line break normalization, impact of xml:space="preserve" on normalization
> 3. Other line separator characters can be inserted into an XML document
> (without getting normalized) by using character entity references.
>      For example, ordinarily \r would be normalized to \n.
>      If you want a \r in your XML document then use &#xD;
yes except they are character references not character entity references
(they're not entities, which makes a difference when interpreting some
edge cases against the rules for entities)

Of course the &#xD might still be normalised (to a space, #x20)
if it is in an attribute, attribute value normaltion is a different
beast, and happens after parsing, unlike eol normalisation which happens
before.

David 

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
Next in thread → Next in month →