Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Problem Flattening XSD Files Problem Flattening XSD FilesTo: NULL Date: 6/2/2007 12:20:00 PM
I'm writing an XSD flattener, that gets rid of global simple and complex
types by merging them into global elements as anonymous types. Where I'm
having trouble is when mixing restriction and extension of a simpleContent.
For example:
<xs:simpleType name="positiveLong">
<xs:restriction base="xs:long">
<xs:minInclusive value="0"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="positiveLongWithAttribute">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="x:positiveLong">
<xs:attribute name="AnAttr" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
Thanks in advance.
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
