xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Kutschera <news2...@ecuapac.at>
Subject XSD: Allow any combination of subelements
Date Sun, 15 Nov 2009 14:35:59 GMT
Hallo!

   I'm trying to represent a mathematical formula with XML and cannot 
find the correct schema definition.

I.e:
<formula>
   <plus>
     <minus>
       ..
     </minus>
     <plus>
       ..
     </plus>
     <minus>
       ..
     </minus>
   </plus>
</formula>


What I want is that, for example, <plus> can have any number of 
unordered <plus> and <minus> elements.

This does not work:
<xsd:complexType name="plus">
   <xsd:sequence>
     <xsd:choice>
       <xsd:element name="plus" type="plus"></xsd:element>
       <xsd:element name="minus" type="minus"></xsd:element>
     </xsd:choice>
   </xsd:sequence>
</xsd:complexType>


Thanks,
   Ralph


---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


Mime
View raw message