Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » prohibiting attributes in extension
prohibiting attributes in extension [message #564440] Wed, 08 January 2003 10:02
Michael Hartmeier is currently offline Michael HartmeierFriend
Messages: 21
Registered: July 2009
Junior Member
Eclipse allows to create a schema where a derived type prohibites an
attribute of the base type. Is this correct, is the attached schema valid
according the the XML schema spec? I'd expect to see some kind of XSD
diagnostics, but there are none (with XSD 20021023_1900TL).


<xs:schema xmlns:xs=''>
<xs:complexType name='base'>
<xs:element name='a' type='xs:string'/>
<xs:attribute name='a' type='xs:string' use='required'/>
<xs:attribute name='b' type='xs:string' use='required'/>
<xs:complexType name='derived' >
<xs:extension base='base'>
<xs:element name='b' type='xs:string'/>
<xs:attribute name='b' type='xs:string' use='prohibited'/>
<xs:attribute name='c' type='xs:string' use='required'/>
Previous Topic:Is there a <xsd:all> limitation?
Next Topic:xerces version
Goto Forum:

Current Time: Thu May 24 21:52:43 GMT 2018

Powered by FUDForum. Page generated in 0.01230 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top