L
Lucia
Hello,
I'd like to write an XML-Schema which has the following structure:
<xsd: complexType name="example">
<xsd: element name="variablename" type="xsd:string"/>
<xsd: element name="variabletype" type="xsd:string"/>
<xsd: element name="variablevalue" type=?????????? />
</xsd:complexType>
My problem is that the type of the element "variablevalue" depends on
the content of the element "variabletype".
e.g. when variablevalue=long, the type of variablevalue should be
"xsd: long";
when variablevalue=string, the type of variablevalue should be
"xsd: string";
How can solve this problem? Have you any idea?
Thanks
lucia
I'd like to write an XML-Schema which has the following structure:
<xsd: complexType name="example">
<xsd: element name="variablename" type="xsd:string"/>
<xsd: element name="variabletype" type="xsd:string"/>
<xsd: element name="variablevalue" type=?????????? />
</xsd:complexType>
My problem is that the type of the element "variablevalue" depends on
the content of the element "variabletype".
e.g. when variablevalue=long, the type of variablevalue should be
"xsd: long";
when variablevalue=string, the type of variablevalue should be
"xsd: string";
How can solve this problem? Have you any idea?
Thanks
lucia