Re: Fwd: Erratum

On Tue, May 07, 2013 at 11:15:48AM -0500, Norman Walsh wrote:
> [ Replying only as myself, not on behalf of the Working Group ]
> 
> Paul Grosso <paul@paulgrosso.name> writes:
> > -------- Original Message --------
> >     Subject: Erratum                           
> > Resent-Date: Tue, 07 May 2013 15:28:21 +0000   
> > Resent-From: xml-editor@w3.org                 
> >        Date: Mon, 6 May 2013 15:20:30 -0400    
> >        From: 
> >          To: xml-editor@w3.org                 
> >
> > Hello,
> >
> > Regarding:
> >
> >     Extensible Markup Language (XML) 1.0 (Fifth Edition)
> >
> >     W3C Recommendation 26 November 2008
> >
> >     Section 3.3 Attribute-List Declarations,
> >
> > should:
> >
> >    [52] AttlistDecl ::= '<!ATTLIST' S Name AttDef* S? '>'
> >
> > be written as:
> >
> >    [52] AttlistDecl ::= '<!ATTLIST' S Name S AttDef* S? '>'
> >
> > with whitespace separating "Name" and "AttDef*"?
> 
> I don't believe so because AttDef is defined thus:
> 
>      [53] AttDef     ::= S Name S AttType S DefaultDecl
> 
> The leading space in AttDef handles both the space separating Name and
> AttDef in production 52 and the case where multiple AttDefs need to be
> separated by spaces.

  Plus AttDef is optional (*) so we should not enforce the S in
production 52 otherwise

<!ATTLIST' foo>

would not be well formed while

<!ATTLIST' foo >

would be, and that would be really weird.

Daniel

-- 
Daniel Veillard      | Open Source and Standards, Red Hat
veillard@redhat.com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | virtualization library  http://libvirt.org/

Received on Wednesday, 8 May 2013 05:38:29 UTC