[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XML Schemas: ref'ing versus in-lining
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|