Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » XSD » XSD Schema and XSD import(XSD:Import and XSD:schema)
XSD Schema and XSD import [message #514228] Fri, 12 February 2010 22:05
xSd  is currently offline xSd
Messages: 1
Registered: February 2010
Junior Member
Hi,

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sapasi="http://www.ibm.com/xmlns/prod/websphere/j2ca/sap/metadata" xmlns:sapidoccontrolrecord=" http://www.ibm.com/xmlns/prod/websphere/j2ca/sap/sapidoccont rolrecord" targetNamespace=" http://www.ibm.com/xmlns/prod/websphere/j2ca/sap/sapidoccont rolrecord">
<xsd:import namespace="http://www.ibm.com/xmlns/prod/websphere/j2ca/sap/metadata"/>

this is a piece of my xsd document. In the xsd:schema tag, I have
xmlns:sapasi="http://www.ibm.com/xmlns/prod/websphere/j2ca/sap/metadata" and again I have an xsd:import tag where I am importing the namespace location "http://www.ibm.com/xmlns/prod/websphere/j2ca/sap/metadata".
When I try to validate this xsd, I get an error message saying Unable to load schema with target namespace "http://www.ibm.com/xmlns/prod/websphere/j2ca/sap/metadata".
Apparently, there is no page at "http://www.ibm.com/xmlns/prod/websphere/j2ca/sap/metadata". So when i remove the xsd:import declaratino from my XSD file, the file validates perfectly eventhough the xsd:schema tag still has xmlns:sapasi="http://www.ibm.com/xmlns/prod/websphere/j2ca/sap/metadata".

I want to understand what is the stuff thats really happening in xml:schema and xsd:import tags.

Thanks!
Previous Topic:Error when parsing XML Schema with extn caps XSD
Next Topic:XSDSchema
Goto Forum:
  


Current Time: Mon Oct 20 04:46:00 GMT 2014

Powered by FUDForum. Page generated in 0.01966 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software