By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,164 Members | 1,598 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,164 IT Pros & Developers. It's quick & easy.

xsd : heritage de deux types complexes

P: n/a
Bonjour, je voudrais réaliser un héritage d'un type complexe avec
attributs

<xs:complexType name="A">
<xs:attribute name="day"/>
</xs:complexType>
puis deux types dérivés :
<xs:element name="B">
<xs:complexType>
<xs:complexContent>
<xs:restriction base="A">
<xs:attribute name="day" use="required"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="C">
<xs:complexType>
<xs:complexContent>
<xs:restriction base="A">
<xs:attribute name="day" use="prohibited"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
</xs:element>
ce schéma ne marche pas. A la sauvegarde d'un document XML basé sur
ce schéma, j'ai une erreur de type "attribute 'day' must have a type
which is validly derived from that of attribute declaration 'day'
Apr 27 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.