S
Steve
Hi,
I'm currently teaching myself about XML schems at the same time as
specifying the XML document for a project I've been given to write.
(I'm new to the XML world, so progress is a little slow at the moment!)
I find myself needing to restrict an element to contain either an
integer in the range of 01 - 99 OR the value "*9". Because of the
asterisk an simple integer field is not sufficient so I suspect I need
to use a substitution group to specify that this element can either be
an integer, or a string with only one permissable value.
I'm following the XML Schema Part 0 - 3 from the w3c.org website to
indicate what is permissible in the language.
I'm a little confused about how to code up a substitution group so that
the value is either a ranged integer, or a specific string. Could
someone point me in the direction of some other documentation which is
a little more readable than the official primer, or describe to me how
it's done - I don't want some canned XML with "This will do what you
require", as I'd like to work this simple problem through myself.
Cheers.
I'm currently teaching myself about XML schems at the same time as
specifying the XML document for a project I've been given to write.
(I'm new to the XML world, so progress is a little slow at the moment!)
I find myself needing to restrict an element to contain either an
integer in the range of 01 - 99 OR the value "*9". Because of the
asterisk an simple integer field is not sufficient so I suspect I need
to use a substitution group to specify that this element can either be
an integer, or a string with only one permissable value.
I'm following the XML Schema Part 0 - 3 from the w3c.org website to
indicate what is permissible in the language.
I'm a little confused about how to code up a substitution group so that
the value is either a ranged integer, or a specific string. Could
someone point me in the direction of some other documentation which is
a little more readable than the official primer, or describe to me how
it's done - I don't want some canned XML with "This will do what you
require", as I'd like to work this simple problem through myself.
Cheers.