relaxng

Inclusive and ordered/unordered definition of an XML element's children using RELAX NG compact syntax

I want to use RELAX NG compact syntax to validate an XML element whose children are one, two, three or n of a set of n specific elements. For instance, if the element is 'Layout' and there is a set of three specific elements: 'top', 'center' and 'bottom', the following XML element definitions would be valid: <Layout> <top/> <cen...

How do I specify a numeric range of occurences in RELAX NG?

I am developing a schema using RELAX NG. I'm pretty new to this, so it is quite possible that I am overlooking something obvious, but there doesn't seem to be a convenient way to specify the number of occurrences of an element like you can in the XML Schema language. For example, suppose I wanted to specify that an A element may contain...

Set nillable element with Relax NG

Is there a way to declare that an element can be null using Relax NG, something like xsi:nillable="true" using XSD? ...

Nested annotations in RelaxNG?

Trying to get the following XSD output from RelaxNG, using Trang for conversion: <xs:annotation> <xs:documentation>Basic documentation text here.</xs:documentation> <xs:appinfo> <jxb:class name="VmlLocation"> <jxb:javadoc> Javadoc text here. </jxb:javadoc> </jxb:class> </xs:appinfo> </xs:annotation> .. but none of the methods for decl...

Validation Layer with interdependency checks

Existing backend services will be opened for more clients (adding a Web Service Layer to the Web-Frontend client). Currently, XML Schema is used for validation of DTOs, but since the frontend is out of our control, we will have to move extended tests (eg. interdependency tests) from the frontend layer to a new "validation layer". Now ou...