W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2005

Re: Duplicate attribute uses (Xerces bug?)

From: Kasimier Buchcik <kbuchcik@4commerce.de>
Date: Mon, 12 Sep 2005 16:44:37 +0200
To: kbuchcik@4commerce.de
Cc: George Cristian Bina <george@sync.ro>, XML-SCHEMA <xmlschema-dev@w3.org>
Message-Id: <1126536277.1272.71.camel@librax>


On Mon, 2005-09-12 at 16:00 +0200, Kasimier Buchcik wrote:
> Hi,


> > Now, the error reported by Xerces is wrong but do you see a benefit of 
> > allowing this? IMO a duplicate attribute element should be an error.
> Yes, you are right; I see no benefit, although I would tend to generate
> a warning instead of an error.


Additionally generating a warning if prohibition is used with
extensions would be good. The following does not produce neither
a warning nor an error with Xerces-J and XSV:

<xsd:complexType name="base">
	<xsd:attribute name="boo" use="optional"/>

<xsd:complexType name="type-1">
		<xsd:extension base="f:base">				
			<xsd:attribute name="boo" use="prohibited"/>


Received on Monday, 12 September 2005 14:45:14 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:08 UTC