[
Lists Home |
Date Index |
Thread Index
]
Richard Tobin scripsit:
> In XML 1.0, this is valid:
>
> <!DOCTYPE foo [
> <!ELEMENT foo ANY>
> <!ATTLIST foo att NMTOKENS #IMPLIED>
> <!ENTITY b 'foo
bar'>
> ]>
> <foo att="&b;"/>
>
> but the corresponding document with … instead of 
 will
> be invalid in 1.1.
Note that in both this case and Richard's other (well-formed only) case,
the character reference has to be inside an entity declaration to work:
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ATTLIST foo att NMTOKENS #IMPLIED>
]>
<foo att="foo
bar">
is not valid in either 1.0 or 1.1 (the attribute value contains seven
characters of which the fourth is a CR).
--
Some people open all the Windows; John Cowan
wise wives welcome the spring jcowan@reutershealth.com
by moving the Unix. http://www.reutershealth.com
--ad for Unix Book Units (U.K.) http://www.ccil.org/~cowan
(see http://cm.bell-labs.com/cm/cs/who/dmr/unix3image.gif)
|