XML - NG

John Cowan cowan at locke.ccil.org
Wed Jan 13 15:09:03 GMT 1999


David LeBlanc scripsit:

> At a minimum, a couple of things i'd like to see are CDATA element content

CDATA element content is Evil and Rude.  The only reason to have it
is to avoid using <s.  Yet it doesn't do what you really want, because
it is terminated by *any* ETAGO ("</") followed by a name start
character, whether or not it's the matching one.  (If the wrong
name appears after the ETAGO, it's an error.)

All the purposes of CDATA element content are served much better
by wrapping the content in "<![CDATA[" ... "]]>" brackets.

> and CDATA attribute content.

XML *has* CDATA attributes.  What are you thinking of here?

OTOH I have now been convinced that leaving out data attributes
was a regrettable loss, although they can be sort of simulated
by ordinary attributes that just happen to go with the
unparsed entity.  (Essentially, they are attributes attached
directly to an unparsed entity; i.e. for a picture, the height
and width of the picture.)

-- 
John Cowan	http://www.ccil.org/~cowan		cowan at ccil.org
	You tollerday donsk?  N.  You tolkatiff scowegian?  Nn.
	You spigotty anglease?  Nnn.  You phonio saxo?  Nnnn.
		Clear all so!  'Tis a Jute.... (Finnegans Wake 16.5)

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list