- From: <bugzilla@jessica.w3.org>
- Date: Mon, 18 Jun 2012 22:49:34 +0000
- To: www-xml-schema-comments@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=6545
--- Comment #5 from Michael Kay <mike@saxonica.com> 2012-06-18 22:49:33 UTC ---
Noted that there is a workaround to this problem: define the derived type not
as a restriction, but as a vacuous extension:
<xs:element name="our-IPO">
<xs:complexType name="our-IPO-type">
<xs:complexContent>
<xs:extension base="IPO-type">
<xs:assert test="every $c in .//@currency satisfies $c='USD'"/>
</xs:extension>
</xs:complexContent>
<xs:complexType>
</xs:element>
Counter-intuitive, but it seems to meet the requirement.
--
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Monday, 18 June 2012 22:49:36 UTC