[fpc-devel] XML Components

Sergei Gorelkin sergei_gorelkin at mail.ru
Fri Nov 2 18:20:36 CET 2012


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



More information about the fpc-devel mailing list