ISSUE-9

Support for xs:union

State:
CLOSED
Product:
Advanced
Raised by:
Paul Downey
Opened on:
2006-01-12
Description:
"""
Description: A number of binding tools do not support the xs:union construct 
well.  They often map a attribute/element xs:union value to a simple string 
irrespective of whether the type contains integers or other more specific 
types.  (It would be hoped that binding tools will improve in this area in 
future.)

Proposal:  Developers should be made aware that binding tools don't always 
handle xs:union well, and as such should avoid the construct if possible. 
However, there are occasions when xs:union can not be avoided.  In this case 
developers should be aware that additional application level processing may 
be required.

[snip]
Pete Cordell
Tech-Know-Ware Ltd
"""

http://lists.w3.org/Archives/Public/public-xsd-databinding/2006Jan/0015.html
Related emails:
  1. ISSUE-9: Support for xs:union (from dean+cgi@w3.org on 2006-01-12)
  2. Agenda: XML Schema Patterns for Databinding Telcon 17 January 2006 (from paul.downey@bt.com on 2006-01-16)
  3. Minutes from XML Schema Patterns for Databinding call 17 January 2006 (from paul.downey@bt.com on 2006-01-18)
  4. Agenda: XML Schema Patterns for Databinding Telcon 24 January 2006 (from paul.downey@bt.com on 2006-01-23)
  5. Agenda: XML Schema Patterns for Databinding F2F 27-28 February 2006 (from paul.downey@bt.com on 2006-02-22)
  6. Revised Agenda: XML Schema Patterns for Databinding F2F 27-28 February 2006 (from paul.downey@bt.com on 2006-02-27)
  7. Minutes from XML Schema Patterns for Databinding F2F 27-28 Feb 2006 (from paul.downey@bt.com on 2006-03-12)
  8. proposed patterns for ISSUE-9 (from paul.downey@bt.com on 2006-05-23)
  9. RE: ISSUE-9 union basic pattern (from jon.calladine@bt.com on 2006-06-06)
  10. Agenda (Revised): XML Schema Patterns for Databinding Telcon 6 June 2006 (from paul.downey@bt.com on 2006-06-06)
  11. Minutes from XML Schema Patterns for Databinding call 6 June 2006 (from paul.downey@bt.com on 2006-06-06)
  12. Agenda: XML Schema Patterns for Databinding Telcon 13 June 2006 (from paul.downey@bt.com on 2006-06-13)
  13. Minutes from XML Schema Patterns for Databinding call 13 June 2006 (from paul.downey@bt.com on 2006-06-13)
  14. RE: ISSUE-9: union pattern for pending document (from jon.calladine@bt.com on 2006-06-14)
  15. Re: ISSUE-9: union pattern for pending document (from peter.hendry@capeclear.com on 2006-06-15)
  16. RE: ISSUE-9: union pattern for pending document (from paul.downey@bt.com on 2006-06-15)
  17. Re: ISSUE-9: union pattern for pending document (from peter.hendry@capeclear.com on 2006-06-16)
  18. RE: ISSUE-9: union pattern for pending document (from paul.downey@bt.com on 2006-06-15)
  19. Re: ISSUE-9: union pattern for pending document (from petexmldev@tech-know-ware.com on 2006-06-15)
  20. Minutes: XML Schema Patterns for Databinding Telcon 27 June 2006 (from paul.downey@bt.com on 2006-06-27)
  21. Minutes: XML Schema Patterns for Databinding Telcon 4 July 2006 (from paul.downey@bt.com on 2006-07-04)
  22. Minutes: XML Schema Patterns for Databinding F2F 31st July - 1st August 2006 (from paul.downey@bt.com on 2006-08-01)

Related notes:

2006-08-01: Pattern: <e:example xml:id="AlternateElement" element="ex:alternateElement"> <e:typedef> <xs:element name="alternateElement" type="ex:AlternateElement"/> <xs:complexType name="AlternateElement"> <xs:union> <xs:element name="alternateOne" type="xs:string"/> <xs:element name="alternateTwo" type="xs:int"/> <xs:element name="alternateThree" type="xs:long"/> </xs:union> </xs:complexType> </e:typedef> <e:instance xml:id="alternateElement01"> <ex:alternateElement> <ex:alternateOne>String Value</ex:alternateOne> </ex:alternateElement> </e:instance> <e:instance xml:id="alternateElement02"> <ex:alternateElement> <ex:alternateTwo>22</ex:alternateTwo> </ex:alternateElement> </e:instance> </e:example>