W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2002

Schema Question (abstract/enforce)

From: Arigapudi, Shyam <Shyam.Arigapudi@ugs.com>
Date: Mon, 21 Jan 2002 18:55:06 -0500 (EST)
Message-ID: <07E98776DFF1BE448D9C9BA60A79ADA4017202BB@amwntx1.ugsolutions.com>
To: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>

Hi,

  I would like to know if this is possible:

   Have a master type that is abstract. However, it needs to make sure that
some element definitions are present in the derived items (pure virtual if
you will)?

  <xsd:complexType name="ObjBaseType" abstract="true">
		<xsd:all>
		   <!-- enforce the existence of these elements in derived
classes /substiture or whatever-->
		    ????
		</xsd:all>
		<xsd:attribute name="unit" type="cimf:ValidUnits"
use="required"/>
		<xsd:attribute name="xform" type="cimf:XformType"
default="1.0 0.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 0.0 1.0"/>
	</xsd:complexType>


  
Regards,
Shyam Arigapudi
www.eds.com
shyam@ugs.com
Received on Monday, 21 January 2002 21:00:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:26 GMT