[Bug 16886] The XML Specification should support the notion of interfaces for Elements and ComplexTypes

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16886

Michael Kay <mike@saxonica.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mike@saxonica.com

--- Comment #3 from Michael Kay <mike@saxonica.com> 2012-04-30 07:59:34 UTC ---
First, pleas note that having got XSD 1.1 out as a Recommendation, the WG
currently has no charter to start work on a new version or on requirements for
a new version. However, if any work does start, the WG will no doubt look at
this.

As far as I can see, however, substitution groups should meet your requirement.
Declare the content model for MyClass as a sequence of I_Name; declare I_Name
as an abstract element with MyName and YourName in its substitution group.

Note that XSD 1.1 allows elements to belong to more than one substitution group
if you need to model multiple inheritance, though this doesn't necessarily mean
of course that every class model you can devise in Java maps trivially to a
corresponding XSD schema - that has never been a design aim.

-- 
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, 30 April 2012 07:59:38 UTC