[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Duplicate attribute uses (Xerces bug?)

From: Kasimier Buchcik <kbuchcik@4commerce.de>
Date: Mon, 12 Sep 2005 20:10:35 +0200
To: kbuchcik@4commerce.de
Cc: XML-SCHEMA <xmlschema-dev@w3.org>
Message-Id: <1126548635.1272.76.camel@librax>
Re: Duplicate attribute uses (Xerces bug?)

Hi,
On Mon, 2005-09-12 at 16:44 +0200, Kasimier Buchcik wrote:
> Hi,
> 
> 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>
> 
> <xsd:complexType name="type-1">
> 	<xsd:complexContent>
> 		<xsd:extension base="f:base">				
> 			<xsd:attribute name="boo" use="prohibited"/>
> 		</xsd:extension>
> 	</xsd:complexContent>
> </xsd:complexType>
> Kasimier

:-( Once more, a correction: XSV reports a schema error - although
with a misleading explanation.

"attempt to extend with an attribute already declared {{None}:boo}"

Regards,

Kasimier
Received on Monday, 12 September 2005 18:10:41 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.