Win a copy of Mastering Non-Functional Requirements this week in the Design forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Attribute Value Normalization  RSS feed

Steve Body
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Practical XML, 2nd edition, p92 says that if the attribute value has been declared as simple CDATA, leading and trailing whitespaces are stripped and multiple whitespace characters are replaced with a single whitespace character.

BUT XML 1.1 REC, 3.3.3 says this should be done 'if the attribute type is *not* CDATA'.

Obviously the REC is right. But am I misunderstanding something in Practical XML??? There's nothing about this in the errata ...

[ April 08, 2006: Message edited by: Steve Body ]
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!