[Home] [By Thread] [By Date] [Recent Entries]

  • From: "Roger L. Costello" <costello@m...>
  • To: xml-dev@l...
  • 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">
   <complexType>
      <element name="cost" type="decimal"/>
      <element name="cost" type="b:money"/>
   </complexType>
</element>
<simpleType name="money" base="decimal">
   <scale value="2"/>
</simpleType>

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


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member