W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2000

Recurring Data Types / Namespaces?

From: Joe Melton <jmelton@cardinalsolutions.com>
Date: Tue, 3 Oct 2000 10:24:02 -0500
Message-ID: <006401c02d54$4e8c3c50$1b085320@ivans.com>
To: <www-xml-schema-comments@w3.org>
Is it legal for a parent node to have multiple child nodes with the same reference type? Here is an example of what I am referring to. CreditSurchargeDt and SecondaryCD occur twice in this sequence. I would think this would be illegal but I would like some confirmation please. If this is illegal, why and how should it be written? Is this a namespace violation?

<group name="PCCREDITSURCHARGE">

       <sequence minOccurs="0" maxOccurs="1">

            <element ref="CreditSurchargeDt" minOccurs="0" maxOccurs="1"/> 


            <element ref="SecondaryCd" minOccurs="0" maxOccurs="1"/> 

            <element ref="CreditSurchargeDt" minOccurs="0" maxOccurs="1"/>

            <element ref="DiscountSurchargeFactorCd"/>

            <element ref="Amount" minOccurs="0" maxOccurs="1"/>

            <element ref="IterationNumber" minOccurs="0" maxOccurs="1"/>

            <element ref="SecondaryCd" minOccurs="0" maxOccurs="1"/>

      </sequence>

</group>
Received on Tuesday, 3 October 2000 11:11:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:12:48 GMT