Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Only relative path is accepted by XSD Validator
Only relative path is accepted by XSD Validator [message #76600] Wed, 24 December 2008 06:29 Go to next message
Keshavrao  is currently offline Keshavrao
Messages: 34
Registered: July 2009
Member
Hello Ed,

When i validate an XSD schema it doesnt accept the project relative paths
at all and i always have to give a relative path to the file being
validated in the import which is kind of not uderstandable directly when i
look at it.
Can you please tell if there is any way i could tell the validator to
accept project relative paths or the rational behind this.


Thanks and regards,
Keshav Veerapaneni.
Re: Only relative path is accepted by XSD Validator [message #76651 is a reply to message #76600] Wed, 24 December 2008 09:40 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26054
Registered: July 2009
Senior Member
Keshavrao,

Comments below.


Keshavrao wrote:
> Hello Ed,
>
> When i validate an XSD schema it doesnt accept the project relative paths
What's that?
> at all and i always have to give a relative path to the file
Relative to what?
> being validated in the import which is kind of not uderstandable
> directly when i look at it.
I've not understood so far either. :-P
> Can you please tell if there is any way i could tell the validator to
> accept project relative paths or the rational behind this.
I'm not quite sure what you mean. You can use
URI.createPlatformResourceURI("/project1/my.xsd", true) to create a
proper absolute URI that addresses the workspace and then any relative
references within my.xsd, e.g., ../project2/other.xsd will also resolve
to a proper absolute URI that addresses the workspace...
>
>
> Thanks and regards,
> Keshav Veerapaneni.
>
Re: Only relative path is accepted by XSD Validator [message #603560 is a reply to message #76600] Wed, 24 December 2008 09:40 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26054
Registered: July 2009
Senior Member
Keshavrao,

Comments below.


Keshavrao wrote:
> Hello Ed,
>
> When i validate an XSD schema it doesnt accept the project relative paths
What's that?
> at all and i always have to give a relative path to the file
Relative to what?
> being validated in the import which is kind of not uderstandable
> directly when i look at it.
I've not understood so far either. :-P
> Can you please tell if there is any way i could tell the validator to
> accept project relative paths or the rational behind this.
I'm not quite sure what you mean. You can use
URI.createPlatformResourceURI("/project1/my.xsd", true) to create a
proper absolute URI that addresses the workspace and then any relative
references within my.xsd, e.g., ../project2/other.xsd will also resolve
to a proper absolute URI that addresses the workspace...
>
>
> Thanks and regards,
> Keshav Veerapaneni.
>
Previous Topic:Only relative path is accepted by XSD Validator
Next Topic:EMF model from XML Schema fails if duration has default value
Goto Forum:
  


Current Time: Mon Sep 22 12:17:26 GMT 2014

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

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