[Bug 19144] support for required attribute name aliases (or attribute/attributeGroup choice)

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

Michael Kay <mike@saxonica.com> changed:

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

--- Comment #1 from Michael Kay <mike@saxonica.com> 2012-09-30 21:05:33 UTC ---
This can be achieved in XSD 1.1 using assertions or using conditional type
assignment. 

Using assertions: assert test="count((@name, @caption) eq 1)"

Using CTA:

alternative test="exists(@caption) != exists(@name)" type="..."
alternative (other) type="xs:error

There are no plans to produce a new version of XSD in the near future, so I
think you will have to use one of these mechanisms for the foreseeable future.

-- 
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 Sunday, 30 September 2012 21:05:34 UTC