I have the following xml fragment:
<MyField>
<FieldName>Blah</FieldName>
<ValueFormatting xsi:type="DateFormatter">
<Format>dd/MM/yy</Format>
</ValueFormatting>
</MyField>
In this XSD, how can I limit or limit the values that are provided for an attribute xsi:typein a ValueFormatting element, since I have a list of four or five types that are valid (e.g. TextFormatter, NumberFormatter, DateFormatter, etc.)?
Also, in my XSD, how can I ensure that the attribute name is "xsi: type"? Is it right that I could probably get away with the attribute name “type”, but then I could risk a collision if the “type” is declared in other namespaces?
Thanks!
source
share