[Bug 4264] K2-ComputeConAttr-5 vs. K2-ComputeConAttr-35

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4264





------- Comment #1 from mike@saxonica.com  2007-01-19 12:29 -------
The empty CDATA section is a lexical notation for a sequence of zero characters
within the element content. It's the same as writing nothing at all, except
that the rules for determining boundary whitespace are determined before
expansion of entity references and CDATA sections. For better or for worse, the
definition is:

Boundary whitespace is a sequence of consecutive whitespace characters within
the content of a direct element constructor, that is delimited at each end
either by the start or end of the content, or by a DirectConstructor, or by an
EnclosedExpr

and in K2-ComputeConAttr-5, the whitespace characters are not boundary
whitespace because they are delimited at one end by a CDATA section, which is
neither a DirectConstructor nor an EnclosedExpr.

Received on Friday, 19 January 2007 12:30:00 UTC