W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2002

RE: XSLT2: CDATA sections in XML output method

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Wed, 4 Sep 2002 21:45:47 +0200
Message-ID: <DFF2AC9E3583D511A21F0008C7E621060453DB19@daemsg02.software-ag.de>
To: David Carlisle <davidc@nag.co.uk>, public-qt-comments@w3.org

David Carlisle:
>   If the text node contains a character that is not 
> representable in the
>   character encoding being used to output the result tree, then the
>   currently open CDATA section should be closed before the 
> character, the
>   character should be output using a character reference or entity
>   reference, and a new CDATA section should be opened for any further
>   characters in the text node.
> This would seem to imply that a run of characters not in the 
> output encoding would cause CDATA to be opened and closed for 
> each character. as in 
> <x><![CDATA[]]>&#1234;<![CDATA[]]>&#1235;<![CDATA[]]>&#1236;</x>
> Would it be possible to allow a run of such characters to be 
> encoded as references and then just restart the CDATA section 
> (if) there are further characters in the output encoding.

This text is carried over unchanged from the 1.0 spec. I'm sure it was never
intended to mean that processors should output empty CDATA sections, and
I'll use editorial licence to remove this implication from the way it's

Michael Kay
Received on Wednesday, 4 September 2002 15:45:54 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:10 UTC