[Home] [By Thread] [By Date] [Recent Entries]
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
|

Cart



