[XML-SIG] Problem parsing the xhtml dtd

Michael Dyck MichaelDyck@home.com
Sat, 07 Oct 2000 14:23:53 -0700


Martin v. Loewis wrote:
> 
> XML 1.0 says
>
> # A special attribute named xml:space may be attached to an element to
> # signal an intention that in that element, white space should be
> # preserved by applications. In valid documents, this attribute, like
> # any other, must be declared if it is used. When declared, it must be
> # given as an enumerated type whose only possible values are "default"
> # and "preserve".
>
> As a non-native speaker of English, that sentence sounds ambiguous to
> me: Does it mean that xml:space must have no more, no less than
> "default" and "preserve" as possible values, or does it mean it may
> have less than these values?

Apparently, it sounded ambiguous to others as well.  The errata for
XML 1.0 (http://www.w3.org/XML/xml-19980210-errata#E81) rewords it:
---------------------------
Section 2.10 
     In the third paragraph, replace the sentence: 

          When declared, it must be given as an enumerated type whose
          only possible values are "default" and "preserve".

     with: 

          When declared, it must be given as an enumerated type whose
          values are one or both of "default" and "preserve".

     Add an example after the existing one (in the same table): 
          <!ATTLIST pre xml:space (preserve) #FIXED 'preserve'>


Rationale 
     The wording in the spec was ambigous on whether the value of the
     xml:space attribute could be limited to one of the two possible
     values.
----------------------------

The change has been incorporated into the 2nd edition of XML 1.0
(see http://www.w3.org/TR/2000/REC-xml-20001006#sec-white-space).

-Michael Dyck