[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xml-dev
Subject:    Re: [xml-dev] What to escape when serializing XML
From:       Bjoern Hoehrmann <derhoermi () gmx ! net>
Date:       2007-01-03 12:08:41
Message-ID: lt6np2h008ig8egnfudcufb23oi0her224 () hive ! bjoern ! hoehrmann ! de
[Download RAW message or body]

* Paul Spencer wrote:
>Don't forget that multiple sequential whitespace characters in attribute
>values will be normalised. This affects your third bullet. From the REC
>section 3.3.3:
>
>If the attribute type is not CDATA, then the XML processor MUST further
>process the normalized attribute value by discarding any leading and
>trailing space (#x20) characters, and by replacing sequences of space (#x20)
>characters by a single space (#x20) character.

There is no way to prevent this from happening; this is an operation on
the normalized value, which has all its character references expanded.
Also note that this applies only to non-CDATA attributes, whatever that
may be.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic