Is there a way to define a constant value and use this constant in a previous XSD? I have a generic value that I want to use for various maxXccurs attributes of xs: element attributes. Like constants in other languages, I want to make changes in one place if the value supporting MyConst ever changes.
<ConstantValue id="MyConst" value="10"/>
...
<xs:element name="sandwich_meat" type="xs:string" minOccurs="0" maxOccurs="MyConst"/>
<xs:element name="sandwich_name" type="xs:string" minOccurs="0" maxOccurs="MyConst"/>
source
share