W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2013

xs:include change base type

From: Karl Stubsjoen <kstubs@gmail.com>
Date: Thu, 6 Jun 2013 14:33:07 -0700
Message-ID: <CAHL+Fe37ss9=Aio5nNVB3JW7U76qijgEEanNH41SFGFvN+gkWw@mail.gmail.com>
To: xmlschema-dev@w3.org
I would like to extend an xs:complexType, and change one of its
attributes from a type xs:NCName to xs:simpleType, with the same base
type mind you.  So something like this:


<xs:complextType name="myComplexType">
  <xs:sequence>...</xs:sequence>
  <xs:attribute name="name" type="xs:NCNAME"/>
</xs:complexType>


Then...

<xs:complexType name="myNewComplexType">
<xs:complexContent>
  <xs:extension base="myComplextType">
     <xs:attribute name="name" type="some_simple_type"/>
  </xs:extension>
</xs:complexContent>
</xsl:complexType>


Is this possible?  I've tried but having no luck.

--
Karl Stubsjoen
MeetScoresOnline.com
(602) 845-0006
Received on Thursday, 6 June 2013 21:33:33 UTC

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