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"/>

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"
        <xs:attribute name="coords" type="Text"/>
Kind regards,

-- Steen Lehmann

[1] :

 * 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 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:08:47 UTC