- From: Satoshi ISHIKAWA <webmaster@satoshii.org>
- Date: Tue, 14 Sep 2004 18:28:42 +0900
- To: xml-editor@w3.org
Dieter Köhler wrote: > 1. Sec. 2.4 defines CDATA section delimiters as markup, while the > definition of character data is: "All text that is not markup > constitutes the character data of the document.". > 2. Sec. 3.2.2 "Mixed Content" states: "An element type has mixed > content when elements of that type MAY contain character data, > optionally interspersed with child elements." > > Since according to (1) CDATA section delimiters are not character data > and according to (2) only character data or child elements are allowed > in mixed content, it follows that CDATA sections are not allowed in > mixed content. In XML 1.0, CDATA section is defined as follows [1]: > CDATA sections MAY occur anywhere character data may occur; > they are used to escape blocks of text containing characters > which would otherwise be recognized as markup. Character data are allowed in mixed content, and CDATA sections are allowed anywhere character data may occur. So that example is valid. [1] http://www.w3.org/TR/REC-xml/#dt-cdsection Regards, -- Satoshi ISHIKAWA <webmaster@satoshii.org> http://www.satoshii.org/markup/
Received on Tuesday, 14 September 2004 09:28:47 UTC