| Validation error on schemalocation of Eclipse-generated xsd file. [message #204746] |
Tue, 20 November 2007 09:30  |
Juan Pedro Silva Messages: 247 Registered: July 2009 |
Senior Member |
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi everybody. <br>
I've asked this in the EMF newsgroup and I was told this newsgroup was
more appropriate.<br>
I'm generating some xsd, wsdl, etc., for my project, and suddenly came
upon this problem.<br>
<br>
While generating an schema <b>with the eclipse wizard</b>, I get:<br>
<br>
<xsd:import namespace=<a class="moz-txt-link-rfc2396E"
href="http://www.eclipse.org/emf/2002/Ecore">"http://www.eclipse.org/emf/2002/Ecore"</a>
schemaLocation=" ../../../../../../../plugin/org.eclipse.emf.ecore/model/Ecor e.xsd "/><br>
<br>
I guess "../../../../../../../" represents the path to the eclipse
installation folder (there are just as much "../" segments as
directories before my eclipse installation folder), but when trying to
validate the xsd I get "Failed
to read schema document" for that line, and therefore all files
that reference this schema are not valid. I placed Ecore.xsd in the
same folder and shortened the path to "./" and validation worked fine.
<br>
<br>
Is the path expression invalid?, which is the maximum allowed depth for
it to be valid?. Relative paths are supposed to be valid, although I
understand this one is not among the most elegant ones.<br>
I'm a newcomer to schemas, so I'm a little lost here. I would very much
appreciate your help.<br>
Thank you in advance.<br>
Regards,<br>
Juan Pedro<br>
</body>
</html>
|
|
|