W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2001

Multiple includes/imports that are circular

From: Yadira Taylor <ytaylor@Qcorps.com>
Date: Tue, 22 May 2001 10:52:21 -0500
To: www-xml-schema-comments@w3.org, Yadira Taylor <ytaylor@Qcorps.com>
Message-ID: <3B0A8B35.CAC87E1@qcorps.com>
I have a situation in which I need to have a circular include/import.
When I run my schema through a validator, I get
an infinite loop. Please advise.

Example:

output.xsd
targetNamespace = "http://OUTPUT"
xmlns:ERROR_HANDLER = "http://ERROR_HANDLER"
import namespace = http://ERROR_HANDLER schemaLocation =
"errorHandler.xsd"

errorHandler.xsd
targetNamespace = "http://ERROR_HANDLER"
xmlns:OUTPUT = "http://OUTPUT"
import namespace = "http://OUTPUT" schemaLocation = "output.xsd"

components.xd
xmlns:OUTPUT = "http://OUTPUT"
xmlns:ERROR_HANDLER = "http://ERROR_HANDLER"
import namespace = "http://ERROR_HANDLER" schemaLocation =
"errorHandler.xsd"
import namespace = "http://OUTPUT" schemaLocation = "output.xsd"


They are separated like that because other schemas I have us either
output.xsd or errorHandler.xsd exclusively.
Is there a way to conditionally include/import a schema if not included
before?

Thanks,
Yadir Taylor
Received on Tuesday, 22 May 2001 11:53:37 GMT

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