I have such xml structure:
<main>
<objects>
<object name="book" />
<object name="table" />
</objects>
<actions>
<action input="book" />
<action input="table" />
<action input="book" />
</actions>
</main>
This is a simplified example.
I want to create xsd schema which invalidates such xml:
<main>
<objects>
<object name="book" />
<object name="table" />
</objects>
<actions>
<action input="book" />
<action input="table" />
<action input="fruit" />
</actions>
</main>
because of there is no object item with the name "fruit" into list of objects.
I can't simply create <xsd:enumeration>
because object names are always different and I don't know all of them. It seems to be a list of possible values of action's names should be created dynamically.
It would be wonderful to create enumeration dynamically for IntelliSense support (<xsd:assert>
can't provide it).
Is it possible?