|
Re: Only relative path is accepted by XSD Validator [message #76651 is a reply to message #76600] |
Wed, 24 December 2008 09:40 |
Ed Merks Messages: 33264 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.
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Only relative path is accepted by XSD Validator [message #603560 is a reply to message #76600] |
Wed, 24 December 2008 09:40 |
Ed Merks Messages: 33264 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.
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03958 seconds