1
General Board / Assertions on simple/complex types - Conditional requird elements (XML 1.1 only)
« on: April 10, 2018, 07:13:25 pm »
Hi,
Does anyone know a way how to model a constraining rule between attributes and elements in Enterprise Architect? More specifically at the moment, I am trying to model conditional required elements in an XSDComplexType, very simpilar to this case here:
https://stackoverflow.com/questions/33504061/conditional-required-elements-in-an-xsd
To address these and other usage scenarios, XML Schema 1.1 provides more expressive constraints through assertions. Assertions are similar to those available in other schema languages such as Schematron and RelaxNG. Other example XSD's here:
http://www.datypic.com/books/defxmlschema/chapter14.html
Does anyone know a way how to model a constraining rule between attributes and elements in Enterprise Architect? More specifically at the moment, I am trying to model conditional required elements in an XSDComplexType, very simpilar to this case here:
https://stackoverflow.com/questions/33504061/conditional-required-elements-in-an-xsd
To address these and other usage scenarios, XML Schema 1.1 provides more expressive constraints through assertions. Assertions are similar to those available in other schema languages such as Schematron and RelaxNG. Other example XSD's here:
http://www.datypic.com/books/defxmlschema/chapter14.html