RE: Cyclic definitions allowed ?

To my knowledge and that of one of our W3C reps, there is nothing in the
W3C XML Schema recommendation that prohibits cyclic definitions. 
 
 
-- 
PITHY WORDS OF WISDOM 
To err is human, but to really foul things up requires a computer.

This posting is provided "AS IS" with no warranties, and confers no
rights. 


	-----Original Message-----
	From: Patrick Andries [mailto:Patrick.Andries@xcential.com] 
	Sent: Tuesday, June 04, 2002 11:36 AM
	To: xmlschema-dev@w3.org
	Subject: Cyclic definitions allowed ? 
	
	
	I have validated the following document in XML Authority and it
is happy.
	 
	But Oracle 9iR2 gives me the following error when I try to
register the schema below : "ORA-31151: Cyclic definition encountered
for element 'span' ".
	Is this normal ?  I would very much appreciate if someone could
then point me to a section in the spec that allows or prohibits these
kinds of definitions.
	 
	P. Andries
	 
	-------------------------
	 
	 
	<xsd:schema xmlns:xsd = "http://www.w3.org/2001/XMLSchema
<http://www.w3.org/2001/XMLSchema> " elementFormDefault = "qualified">
	 
	<xsd:group name = "liContentGroup">
	  <xsd:choice>
	   <xsd:element ref = "span"/>
	   <xsd:element ref = "b"/>
	   <xsd:element ref = "i"/>
	   <xsd:element ref = "ol"/>
	   <xsd:element ref = "ul"/>
	  </xsd:choice>
	 </xsd:group>
	 
	<xsd:element name="span" type="spanType"/>
	<xsd:element name="b" type="spanType"/>
	<xsd:element name="i" type="spanType"/>
	<xsd:element name="u" type="spanType"/>
	<xsd:element name="ol" type="olType"/>
	<xsd:element name="ul" type="ulType"/>
	<xsd:element name="li" type="liType"/>
	
	<xsd:complexType name = "spanType" mixed = "true">
	    <xsd:choice minOccurs = "0" maxOccurs = "unbounded">
	        <xsd:element ref = "span"/>
	        <xsd:element ref = "b"/>
	        <xsd:element ref = "i"/>
	        <xsd:element ref = "u"/>
	    </xsd:choice>
	    <xsd:attribute name = "style" type = "xsd:string"/>
	</xsd:complexType>
	 
	<xsd:complexType name = "olType">
	    <xsd:sequence minOccurs = "0" maxOccurs = "unbounded">
	           <xsd:element ref = "li"/>
	    </xsd:sequence>
	    <xsd:attribute name = "type" type = "xsd:string"/>
	 </xsd:complexType>
	 
	  <xsd:complexType name = "ulType">
	      <xsd:sequence minOccurs = "0" maxOccurs = "unbounded">
	           <xsd:element ref = "li"/>
	      </xsd:sequence>
	 </xsd:complexType>
	 
	  <xsd:complexType name = "liType" mixed = "true">
	      <xsd:sequence>
	           <xsd:choice minOccurs = "0" maxOccurs = "unbounded">
	                <xsd:group ref = "liContentGroup"/>
	           </xsd:choice>
	      </xsd:sequence>
	 </xsd:complexType>
	 </xsd:schema>
	
	 
	 

Received on Tuesday, 4 June 2002 14:57:47 UTC