S
Sean LeBlanc
I'm trying to discern whether XML Schema can do something like this:
Supposing the element has two attributes, id and value.
Now, if id = one value, say "number" vs. another value, say, "alpha",
can I write XML Schema that would limit the values of the attribute
"value" to
1, 2, or 3 if id is number vs. a, b, or c if id is alpha?
I'm trying to tell whether I have to resort to Schematron to do
something like this.
Thanks in advance,
Supposing the element has two attributes, id and value.
Now, if id = one value, say "number" vs. another value, say, "alpha",
can I write XML Schema that would limit the values of the attribute
"value" to
1, 2, or 3 if id is number vs. a, b, or c if id is alpha?
I'm trying to tell whether I have to resort to Schematron to do
something like this.
Thanks in advance,