can you provide a tie-breaker? asserting that XMLSpy says it's ok is not really sufficient. I would suggest bringing a third tool into the mix and see what happens.
I am participating in another thread on the xerces-j mailing list wrt a newly established XMLSchema standard that can't be validated against xerces and i am beginning to suspect that XMLSpy was the only tool used in the creation of this standard :-(. On Mon, 14 Jan 2002, Sam Tregar wrote: > Hello. I'm attempting to use Xerces-C++ package to validate documents > against an XML Schema. I'm recieving this error: > > Error at file /home/sam/doc.xml, line 5, char 85 > Message: No circular definitions are allowed: >'http://bricolage.sourceforge.net/assets.xsd,container_type' > > The relevent schema section is (edited for brevity by removing some > attribute defs): > > <xs:complexType name="container_type" mixed="0"> > <xs:sequence> > <xs:element name="container" minOccurs="0" maxOccurs="unbounded"> > <xs:complexType> > <xs:complexContent> > <xs:extension base="container_type"/> > </xs:complexContent> > </xs:complexType> > </xs:element> > <xs:element name="data" minOccurs="0" maxOccurs="unbounded" type="xs:string"/> > </xs:sequence> > </xs:complexType> > > This is indeed a recursive definition. But is it really an invalid XML > Schema? XMLSpy (www.xmlspy.com) doesn't think so - it can use the schema > to validate documents. > > If it is invalid, can someone suggest another way to model recursive > datastructures in XML Schema? My intent is to allow structures of > arbitrary depth like: > > <container> > <data>foo</data> > <data>bar</data> > <container> > <data>fooz</data> > <container> > <data>baz</data> > </container> > </container> > </container> > > Any ideas? > > -sam > PS: Please include me in the CC: on any replies as I am not on the > mailing-list. Thanks! > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
