02.11.2012 19:57, Andrew Brunner пишет:
So where in the specs does it say that parsers must reject certain byte 
sequences between cdata tags excepting XML tags.

If this is supported by specs it would help shape a viable solution.

This is not supported. Encoding processing, line-feed normalization and invalid character rejection happens before attempting to detect any markup. This is necessary to support encodings like ISO-2022-jp, which uses ESC sequences to switch between meaning of subsequent chars.

CDATA is, in fact, even more restricted than text content. Outside of CDATA, a 
character
unrepresentable in target encoding can be ampersand-escaped. Within CDATA this 
cannot be done.
CDATA is intended only to handle '<' and '&' as plaintext, nothing more.

Regards,
Sergei
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to