Is it possible to use an XML Schema to ensure that the data in one
attribute is less than or equal to the value in another?
Is it possible, through the use of the <xsd:sequenceor similar, to
ensure than a multiplicity is equal to the value held in another
attribute?
In case anyone is interested, I am storing knitting charts in XML, for
use in a Java application. They are a 2x2 matrix and I store the
number of rows as an attribute of the chart (which is the root
element). Each row is a child element of the chart, but there must be
exactly as many rows as is specified. Storing the size helps my
program to process the file into an array. I also want to store
certain data about the columns in the chart, these are referred to as
a number and of course this number must be less than or equal to the
total number of columns.