
In the past versions of the Oxygen Schema editor, an import statement would not work unless a schema association was configured. The W3C guidelines on import statements, though, states that schemaLocation is optional. Presumably, it would be optional if the import uri is the same as the schemaLocation, which is the case in my situation. However, oxygen fails to import without a schemaLocation attribute. Here is my schema: http://www.hmis.info/schema/3_0/HUD_HMIS.xsd Thanks! -- Eric Jahn phone: 727.537.9474 3126 8th Ave N St. Petersburg, Florida 33713

Hi Eric, From what I understand in your case the namespace and schema location have the same value. The namespace is not interpreted as a schema location, it is just an identifier. Usually an xsd:import should have both schemaLocation and namespace. If the schema location is missing, Oxygen has a feature which allows it to try and resolve the namespace identifier through the set-up catalogs. Just go to the Oxygen Preferences->"XML / XML Catalog" page and check the "Process namespaces through URI mappings for XML Schema" checkbox. Then, if your namespace is mapped using URI mappings through the catalogs configured in Oxygen to a schema location, that location will be used. Regards, Radu -- Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 4/22/2010 4:26 PM, Eric Jahn wrote:
In the past versions of the Oxygen Schema editor, an import statement would not work unless a schema association was configured. The W3C guidelines on import statements, though, states that schemaLocation is optional. Presumably, it would be optional if the import uri is the same as the schemaLocation, which is the case in my situation. However, oxygen fails to import without a schemaLocation attribute. Here is my schema: http://www.hmis.info/schema/3_0/HUD_HMIS.xsd Thanks!

Dear Eric, In general the namespace is different from the schema location so oXygen does not assume that. However, we support specifying an import without a schema location. oXygen needs to find a schema for that namespace and that is possible in two cases: - if there is a previous import for the same namespace that specified a schema location - if there is an uri mapping in the XML Catalog mapping from that namespace to a schema location In your case all you need is to add a "uri" entry in an XML Catalog to map from that namespace to the schema location and set that catalog as XML Catalog in oXygen. Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 4/22/10 4:26 PM, Eric Jahn wrote:
In the past versions of the Oxygen Schema editor, an import statement would not work unless a schema association was configured. The W3C guidelines on import statements, though, states that schemaLocation is optional. Presumably, it would be optional if the import uri is the same as the schemaLocation, which is the case in my situation. However, oxygen fails to import without a schemaLocation attribute. Here is my schema: http://www.hmis.info/schema/3_0/HUD_HMIS.xsd Thanks!
participants (3)
-
Eric Jahn
-
George Cristian Bina
-
Radu Coravu