Re: Erratum [3]: Modularization of XHTML

For the record:

mimasa@w3.org wrote:
> wapdesign@wapdesign.org.uk wrote:
> 
> > Error in F.4.1. Block Phrasal:
> > 
> > <!ATTLIST %pre.qname;
> >       %Common.attrib;
> >       xml:space    ( preserve )             #FIXED 'preserve'
> > >
> > 
> > Should be:
> > 
> > <!ATTLIST %pre.qname;
> >       %Common.attrib;
> >       xml:space    ( default | preserve )   #FIXED 'preserve'
> > >
> > 
> > The xml:space attribute must be ennumerated, even if it is a fixed
> > attribute.
> 
> No.  "2.10 White Space Handling" of XML 1.0 (Second Edition) [1] 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 values are one or both of "default"
>     and "preserve". For example:
> 
>         <!ATTLIST poem  xml:space (default|preserve) 'preserve'>
> 
>         <!-- -->
>         <!ATTLIST pre xml:space (preserve) #FIXED 'preserve'>
> 
>     The value "default" signals that applications' default white-space
>     processing modes are acceptable for this element; the value "preserve"
>     indicates the intent that applications preserve all the white space.
>     This declared intent is considered to apply to all elements within the
>     content of the element where it is specified, unless overriden with
>     another instance of the xml:space attribute.
> 
> So the definition in F 4.1 is perfectly OK.  This is one place where
> ambiguity in XML 1.0 is clarified in the Second Edition.  Note that
> this has been mentioned in the XML 1.0 Specification Errata E81 [2],
> so this also applies to the First Edition of XML 1.0.
> 
> [1] http://www.w3.org/TR/2000/REC-xml-20001006#sec-white-space
> [2] http://www.w3.org/XML/xml-19980210-errata#E81
> 
> Regards,
> -- 
> Masayasu Ishikawa / mimasa@w3.org
> W3C - World Wide Web Consortium

Received on Friday, 27 October 2000 08:25:11 UTC