"Jesse Pelton" <[EMAIL PROTECTED]> writes: > See section 3.3.3 of the XML specification. If I've read it > correctly, parsers must strip leading and trailing whitespace and > compress internal whitespace to a single space for attribute values > declared as something other than CDATA. However, "All attributes for > which no declaration has been read should be treated by a > non-validating parser as if declared CDATA." If you're validating, > declare the attribute as CDATA. If you're not validating, you can > declare it as CDATA or not declare it at all.
Hmmm.... I just had a bitch of a problem in which an attribute declared as CDATA in my DTD had it's internal whitespace converted. The Xerces SAX1 and SAX2 parsers converted all tab characters to spaces. This seems to violate the whole point of CDATA doesn't it? jas. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
