[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: What to escape when serializing XML
* 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] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|