[Home] [By Thread] [By Date] [Recent Entries]

  • From: Bjoern Hoehrmann <derhoermi@g...>
  • To: "Paul Spencer" <xml-dev-list@b...>
  • Date: Wed, 03 Jan 2007 13:08:41 +0100

* 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@h... · 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/ 


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member