[
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">
<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
|