Only relative path is accepted by XSD Validator [message #76600] |
Wed, 24 December 2008 01:29  |
Eclipse User |
|
|
|
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 04:40  |
Eclipse User |
|
|
|
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 04:40  |
Eclipse User |
|
|
|
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.
>
|
|
|
Powered by
FUDForum. Page generated in 0.04988 seconds