OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: XML Schemas: ref'ing versus in-lining

[ Lists Home | Date Index | Thread Index ]
  • From: "Roger L. Costello" <costello@mitre.org>
  • To: xml-dev@lists.xml.org
  • Date: Thu, 14 Sep 2000 06:53:51 -0400

Rick JELLIFFE wrote:
> A good question is whether a subsequent element can have a derived 
> type of the first element's type? 

I tested this with XSV.  Here's what I tried:

<element name="Book">
      <element name="cost" type="decimal"/>
      <element name="cost" type="b:money"/>
<simpleType name="money" base="decimal">
   <scale value="2"/>

XSV gave an error with this, stating the cost had been multiply defined
and is therefore illegal.  /Roger


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS