Re: Possible changes for XML 2nd Edition

Kay Michael wrote:

> E62, which requires the separator in Names and NMTOKENS to be a single space
> rather than any sequence of whitespace characters, looks like a rather major
> incompatibility to me!

The change is in fact a subtle one: it affects only the *value* of an attribute,
which is what you have after the attribute-normalization process described
in clause 3.3.3 is performed.  (Note that 3.3.3 has been clarified by E24 and E61.)

Consequently, although

	<element magic="foo
			bar"/>

where "magic" is of type ENTITIES, IDREFS, or NMTOKENS, will still work (and return
a value of "foo bar"), under E62 it is invalid to say:

	<element magic="foo&#10;&#9;&#9;&#9;bar"/>

Of course it is still well-formed.

Does anyone seriously think that the second example ought to be valid?

-- 

Schlingt dreifach einen Kreis um dies! || John Cowan <jcowan@reutershealth.com>
Schliesst euer Aug vor heiliger Schau,  || http://www.reutershealth.com
Denn er genoss vom Honig-Tau,           || http://www.ccil.org/~cowan
Und trank die Milch vom Paradies.            -- Coleridge (tr. Politzer)

Received on Thursday, 25 May 2000 11:16:52 UTC