Multiple includes/imports that are circular

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 UTC