W3C home > Mailing lists > Public > www-html@w3.org > November 1999

RE: No specification for querystrings and fragment identifiers

From: <JOrendorff@ixl.com>
Date: Tue, 23 Nov 1999 12:27:53 -0500
Message-ID: <CD8E2CDBC6D0D111ACB900805FBBD97E01FCFEEE@mem-131.ixl.com>
To: www-html@w3.org


From: Dave J Woolley [mailto:DJW@bts.co.uk]
Sent: Tuesday, November 23, 1999 10:40 AM
> 	Some further information.
> 
> 	Section 2.7 of the XML specification specifically
> 	forbids interpretation of character entitities in
> 	CDATA, quoting &lt; and &gt; as examples, but section
> 	2.4 makes specific exceptions for &quot; and &apos;
> 	in CDATA attributes.  Looks like there is no escape 
> 	convention to represent literal &quot; in XML!  Oops!

Section 2.7 only applies to CDATA sections, of the form
<![CDATA[    ...data data data...    ]]>

The attribute type CDATA, perversely, is something different.

Inside a CDATA section, nothing counts as markup.
In a CDATA attribute, there is markup.  The < character
is not allowed; character references and entity references
are processed.

Section 3.3.3 of the XML spec, "Attribute-Value Normalization",
specifies that "[b]efore the value of an attribute is passed to
the application or checked for validity, the XML processor
must normalize it...."  This "normalization" includes the usual
treatment of character references and entity references.  This
happens regardless of the declared "type" of the attribute.

The value &quot; could be represented by "&amp;quot;".

-- 
Jason
Received on Tuesday, 23 November 1999 12:28:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:40 GMT