W3C home > Mailing lists > Public > www-html-editor@w3.org > April to June 2002

Another error in XHTML schema (xhtml-csismap.xsd), 'shape' attrib ute

From: Lehmann, Steen <slehmann@silverstream.com>
Date: Tue, 16 Apr 2002 17:16:39 +0200
Message-ID: <FD8A740186525243807FBCDB7E739D0585F33D@EXBE1.silverstream.be>
To: "'www-html-editor@w3.org'" <www-html-editor@w3.org>

If the client-side image map schema xhtml-csismap.xsd [1] is included when
validating an XHTML file using the XHTML 1.1 schema, the attribute group for
the <a> element is redefined to also include a.csim.attlist:

<xs:redefine schemaLocation="../req/core/xhtml-hypertext-1.xsd">
        <xs:attributeGroup name="a.attlist">
                <xs:attributeGroup ref="a.attlist" />
                <xs:attributeGroup ref="a.csim.attlist"/>
        </xs:attributeGroup>
</xs:redefine>

However, a.csim.attlist _requires_ the presence of the shape attribute,
which would seem to me to be incorrect, since not all A elements will have a
shape attribute even though client side image map attributes are allowed:

    <!-- modify anchor attribute definition list -->
    <xs:attributeGroup name="a.csim.attlist">
        <xs:attribute name="shape" type="Text" use="required"
default="rect"/>
        <xs:attribute name="coords" type="Text"/>
    </xs:attributeGroup>
	
Kind regards,

-- Steen Lehmann

References:
[1] :
http://www.w3.org/TR/2001/WD-xhtml-m12n-schema-20011219/schema_module_defs.h
tml#a_smodule_Client-side_Image_Map

/**
 * Steen Lehmann - <mailto:slehmann@silverstream.com>
 * Senior Software Engineer (R&D), SilverStream Software 
 * <http://www.silverstream.com>
 */ 
Received on Tuesday, 16 April 2002 11:17:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:17:42 GMT