xml - Generate XSD Elements dynamically depending upon the value of an existing xsd element -


i have xsd:

   <xs:element name="tranresp">         <xs:complextype>           <xs:choice maxoccurs="unbounded">             <xs:element ref="receipt" minoccurs="0" />             <xs:element ref="receiptlines" minoccurs="0" /> </xs:choice>     </xs:complextype>       </xs:element> 

.....

 <xs:element name="receipt"/>   <xs:element name="receiptlines"/> 

i need add receipt{1} receipt{n} dynamically depending upon value of receiptlines in integer. {n} represents integer number. need have 1 many relationship between receiptlines , receipt{n}.

like: if value of receiptlines 5. need generate receipt1, receipt2 ... receipt5.

can this? if yes, how? can change xsd. can help?


Comments