<list>
<data type="double">
<data type="double">
</list>
validates ok for something like
"12.8 20"
Is there a way with Relax NG to also ensure that the values are always
in monotonous ascending order, i.e.:
- not equal
- the second larger than the first?
or in mathematical form: x2 >= x1
And even more: if it works with two values, would it also work with an
"unlimited number" of values? Like
<list>
<zeroOrMore>
<data type="double">
</zeroOrMore>
</list>
or possibly only in the following case (with at least 2 elements):
<list>
<data type="double">
<oneOrMore>
<data type="double">
</oneOrMore>
</list>
I assume that something like Schematron could do that, but if I could
do it with Relax NG it would be the advantage that my whole validation
could be done 100% in that single scheme language!