Re: Comments and element content for serialization

<i><![CDATA[1]]>2</i>

and

<i><![CDATA[12]]></i>

are equivalent from the Infoset perspective. Strictly speaking the first two
examples are not, unless you're ignoring comments ( like SAX ContentHandler
does for example ). Running all 4 of those elements through a SAX
ContentHandler would generate the same result.

Martin Gudgin
DevelopMentor

----- Original Message -----
From: "Rich Salz" <rsalz@zolera.com>
To: "W3C XP" <xml-dist-app@w3.org>
Sent: Friday, June 01, 2001 3:35 PM
Subject: Comments and element content for serialization


> Which of the following are legal serializations for the integer 12?
> <i>1<!-- x-->2</i>
> <i><!-- x-->12</i>
> <i><![CDATA[1]]>2</i>
> <i><![CDATA[12]]></i>
>
> In looking at the sec5.1 serialization rules, it says simple values are
> character data without any subelements.  But these are siblings, not
> children.
>
> Seems like a clarification is needed.
> /r$
>

Received on Friday, 1 June 2001 14:37:50 UTC