Re: xml:space undeclared in DTD for elements "script" and "style" (PR#9516)

Thank you for spotting this - it is an error in the DTD implementation.  The
prose clearly states that the xml:space attribute is required to be supported on
the style and script elements.

> From: Jesus Arias Fisteus <jaf@it.uc3m.es>
> To: www-html-editor@w3.org
> Subject: xml:space undeclared in DTD for elements "script" and "style"
> Date: Tue, 21 Feb 2006 17:49:42 +0100 (CET)
> Message-ID: <Pine.LNX.4.62.0602211604410.7597@ariadna.it.uc3m.es>
> X-Archived-At: http://www.w3.org/mid/Pine.LNX.4.62.0602211604410.7597@a=
> riadna.it.uc3m.es
> 
> Hello,
> 
> I think that there is an error regarding the "xml:space" attribute in t=
> he =
> 
> new DTDs published with XHTML Modularization 1.1 (13 February 2006). So=
> rry =
> 
> in advance if I am mistaken or I have missed any other report about the=
>  =
> 
> same problem.
> 
> I've tried to validate a XHTML 1.1 document with a "xml:space" attribut=
> e =
> 
> inside a "script" element. I've got this error (using Xerces-J 2.6):
> 
> [Error] index.html:389:61: Attribute "xml:space" must be declared for =
> 
> element type "script".
> 
> I've downloaded and analysed the updated modules declarations. It seems=
>  =
> 
> that xml:space has been removed from the attlist of "script", "style" a=
> nd =
> 
> "pre", and included in the entity "Core.attrib" (see xhtml-attribs-1.mo=
> d),
> which is included also in "Common.attrib".
> 
> ENTITY % Core.attrib
       "%XHTML.xmlns.attrib;
>        %id.attrib;
>        %class.attrib;
>        %title.attrib;
>        xml:space    ( preserve )             #FIXED 'preserve'
>        %Core.extra.attrib;"
>>
> ENTITY % Common.attrib
       "%Core.attrib;
>        %I18n.attrib;
>        %Events.attrib;
>        %Common.extra.attrib;"
>>
> 
> 
> However, "style" and "script" don't reference "Core.attrib" nor =
> 
> "Common.attrib" from their attlist. The consequence is that "style" and=
>  =
> 
> "script" doesn't allow the "xml:space" attribute. Should them reference=
>  =
> 
> the "Core.attrib" entity?
> 
> From=20"xhtml-style-1.mod" and "xhtml-script-1.mod":
> 
> ENTITY % style.attlist  "INCLUDE" 
> [%style.attlist;[
> <!ATTLIST %style.qname;
>        %XHTML.xmlns.attrib;
>        %id.attrib;
>        %title.attrib;
>        %I18n.attrib;
>        type         %ContentType.datatype;   #REQUIRED
>        media        %MediaDesc.datatype;     #IMPLIED
>>
> <!-- end of style.attlist -->]]
> 
> ENTITY % script.attlist  "INCLUDE" 
> [%script.attlist;[
> <!ATTLIST %script.qname;
>        %XHTML.xmlns.attrib;
>  	  %id.attrib;
>        charset      %Charset.datatype;       #IMPLIED
>        type         %ContentType.datatype;   #REQUIRED
>        src          %URI.datatype;           #IMPLIED
>        defer        ( defer )                #IMPLIED
>>
> <!-- end of script.attlist -->]]
> 
> The files I'm reporting about are dated in 2006/02/13 and published in:=
> 
> 
> http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-attribs-1.mod
> http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-script-1.mod
> http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-style-1.mod
> 
> Best regards,
> 
> Jes=FAs Arias Fisteus
> Telematic Engineering Department
> Universidad Carlos III de Madrid
> 
> 

Received on Thursday, 6 April 2006 00:34:30 UTC