- From: Jesus Arias Fisteus <jaf@it.uc3m.es>
- Date: Tue, 21 Feb 2006 17:49:42 +0100 (CET)
- To: www-html-editor@w3.org
- Message-ID: <Pine.LNX.4.62.0602211604410.7597@ariadna.it.uc3m.es>
Hello, I think that there is an error regarding the "xml:space" attribute in the new DTDs published with XHTML Modularization 1.1 (13 February 2006). Sorry 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" attribute 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" and "pre", and included in the entity "Core.attrib" (see xhtml-attribs-1.mod), 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 "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ús Arias Fisteus Telematic Engineering Department Universidad Carlos III de Madrid
Received on Tuesday, 21 February 2006 16:49:47 UTC