M
motorpage
Hi,
I am a newbie to schema definitions so forgive me if this is a simple
question.
I am trying to create a schema for a complex type that allows
instances of either of the two forms:
<test1 state=true>
<name>test1/>
<type>typeA/>
</test1>
<test2 state=false>
<name>test2/>
<type>type@/>
</test2>
Here the 'type' element is a string without the '@' character if
'state' is true and a string with the '@' character when state is
false.
I am a newbie to schema definitions so forgive me if this is a simple
question.
I am trying to create a schema for a complex type that allows
instances of either of the two forms:
<test1 state=true>
<name>test1/>
<type>typeA/>
</test1>
<test2 state=false>
<name>test2/>
<type>type@/>
</test2>
Here the 'type' element is a string without the '@' character if
'state' is true and a string with the '@' character when state is
false.