 |
 |
 |
Hi,
I want to overwrite an attribute definition in a derived type in xml
schema.
The base type is
< xs:complexType name = "base">
< xs:complexContent >
<xs:restriction base ="xs:anyType" >
<xs:attribute name ="att" type ="xs:int" use ="optional" default ==
"1000" />
</xs:restriction >
</xs:complexContent >
</xs:complexType >
The derived type is:
<xs:complexType name="type">
<xs:complexContent>
<xs:extension base="base">
<xs:sequence>
<xs:element name="e" type="xs:string"/>
</xs:sequence>
<xs:attribute name="att" type="xs:int" use="optional" default="1"/>=
</xs:extension>
</xs:complexContent>
</xs:complexType>
Basically, "type" is drived from "base", in type, I want to overwrite the=
attribute "att" to set the default value from "1000" to "1". Is it a valid=
operation? My schema validator always complains about it (I use XMLSpy). Is=
there way to do this?
Thanks.
Steve
|
 | 



|  |
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.
|  |
| |
 |
 |
 |