This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Product and Other Certifications and the fly likes Attribute Value Normalization Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "Attribute Value Normalization" Watch "Attribute Value Normalization" New topic
Author

Attribute Value Normalization

Steve Body
Greenhorn

Joined: Mar 03, 2006
Posts: 2
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 ...

Steve
[ April 08, 2006: Message edited by: Steve Body ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Attribute Value Normalization
 
Similar Threads
Invalid type defined...
canonicalizing vs normalizing
How to add a literal string div tag to my output?
Creating formatted XML output by JAXP
processing instruction target matching "[xX][mM][lL]