V
volatile.memory
I have an XSD that defines a type of engine. Depending upon which of
the 200 <engineType>s is selected there are different legal values for
<part> fields like <partLife> and <partCost>.
I would like to use XSD to validate the XML to ensure that lives and
costs for parts are correct, but I don't see a way to do that without
creating separate XSD for each engine, which is silly because -- with
the exception of the valid range for part data -- the XSD holds for
all engines.
How have others tackled this one?
vm
the 200 <engineType>s is selected there are different legal values for
<part> fields like <partLife> and <partCost>.
I would like to use XSD to validate the XML to ensure that lives and
costs for parts are correct, but I don't see a way to do that without
creating separate XSD for each engine, which is silly because -- with
the exception of the valid range for part data -- the XSD holds for
all engines.
How have others tackled this one?
vm