Spacen Jasset wrote:
Am I right in thinking that line endings are translated even within
CDATA sections? The standard states that translation occurs before
parsing so this appears to be the case.
That's how I'm reading it. CDATA sections are something of a minor
abomination anyway; it's generally better to use character-by-character
escaping where needed. (Or, if you're trying to pass a block of binary
data, to encode it as base-64 or something of that sort.)
CDATA Sections were provided to let people more easily cut-and-paste
some -- not all! -- non-XML data into XML documents. But these days,
given decent XML editing tools which automate the escaping task, there's
really very little need for the <![[CDATA[]]kluge. The one exception
is working with tools that don't support XML properly, and I would
advise beating up the authors of those tools to get them fixed.
--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry