Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » customize XMl validator
customize XMl validator [message #191917] Wed, 02 May 2007 07:42 Go to next message
kashif is currently offline kashifFriend
Messages: 16
Registered: July 2009
Junior Member
Hi,
I will appriciate if anyone let me know if it is possible to set a customize
validator to resolve the schema URL?? Might be there is a way to just using
the schema file name I can append the absolute path to the schema location.

My requirement is I don't want to have absolute or relative path with in the
XML file and just want ot have schema file name.

Thanks,
Kashif
Re: customize XMl validator [message #191919 is a reply to message #191917] Wed, 02 May 2007 11:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Kashif,

I think the XML catalog would solve this problem too.


kashif wrote:
> Hi,
> I will appriciate if anyone let me know if it is possible to set a customize
> validator to resolve the schema URL?? Might be there is a way to just using
> the schema file name I can append the absolute path to the schema location.
>
> My requirement is I don't want to have absolute or relative path with in the
> XML file and just want ot have schema file name.
>
> Thanks,
> Kashif
>
>
>
Re: customize XMl validator [message #191922 is a reply to message #191919] Wed, 02 May 2007 11:53 Go to previous messageGo to next message
kashif is currently offline kashifFriend
Messages: 16
Registered: July 2009
Junior Member
Hi Merks,

I used XMl catlog but it does add full path in the XML location attribute.
Also it comes to another issue like it will not be poosible for the user to
share his project for other user. As there might be every user has to
configure a catlog entry. So my requirement is it hsould have solved in a
generic way. Like just adding the name of the schema and there should be
some other way through programmatically may be.

Thanks,
Kashif

"Ed Merks" <merks@ca.ibm.com> wrote in message
news:f19rtj$pib$5@build.eclipse.org...
> Kashif,
>
> I think the XML catalog would solve this problem too.
>
>
> kashif wrote:
>> Hi,
>> I will appriciate if anyone let me know if it is possible to set a
>> customize validator to resolve the schema URL?? Might be there is a way
>> to just using the schema file name I can append the absolute path to the
>> schema location.
>>
>> My requirement is I don't want to have absolute or relative path with in
>> the XML file and just want ot have schema file name.
>>
>> Thanks,
>> Kashif
>>
>>
Re: customize XMl validator [message #191925 is a reply to message #191922] Wed, 02 May 2007 11:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------000505080705070406080702
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Kashif,

It's always possible to use a relative path with an xsi:schemaLocation,
e.g., xsi:schemaLocation="../../My.xsd" so if the .xsd and .xml are in
the same project, that approach should work. If they are in different
projects, you'll need to refer to the project name somehow and if
indirection through the catalog isn't sufficient, I don't think there's
another way.


kashif wrote:
> Hi Merks,
>
> I used XMl catlog but it does add full path in the XML location attribute.
> Also it comes to another issue like it will not be poosible for the user to
> share his project for other user. As there might be every user has to
> configure a catlog entry. So my requirement is it hsould have solved in a
> generic way. Like just adding the name of the schema and there should be
> some other way through programmatically may be.
>
> Thanks,
> Kashif
>
> "Ed Merks" <merks@ca.ibm.com> wrote in message
> news:f19rtj$pib$5@build.eclipse.org...
>
>> Kashif,
>>
>> I think the XML catalog would solve this problem too.
>>
>>
>> kashif wrote:
>>
>>> Hi,
>>> I will appriciate if anyone let me know if it is possible to set a
>>> customize validator to resolve the schema URL?? Might be there is a way
>>> to just using the schema file name I can append the absolute path to the
>>> schema location.
>>>
>>> My requirement is I don't want to have absolute or relative path with in
>>> the XML file and just want ot have schema file name.
>>>
>>> Thanks,
>>> Kashif
>>>
>>>
>>>
>
>
>


--------------000505080705070406080702
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Kashif,<br>
<br>
It's always possible to use a relative path with an xsi:schemaLocation,
e.g., xsi:schemaLocation="../../My.xsd" so if the .xsd and .xml are in
the same project, that approach should work.&nbsp; If they are in different
projects, you'll need to refer to the project name somehow and if
indirection through the catalog isn't sufficient, I don't think there's
another way.<br>
<br>
<br>
kashif wrote:
<blockquote cite="midf19u3c$vef$1@build.eclipse.org" type="cite">
<pre wrap="">Hi Merks,

I used XMl catlog but it does add full path in the XML location attribute.
Also it comes to another issue like it will not be poosible for the user to
share his project for other user. As there might be every user has to
configure a catlog entry. So my requirement is it hsould have solved in a
generic way. Like just adding the name of the schema and there should be
some other way through programmatically may be.

Thanks,
Kashif

"Ed Merks" <a class="moz-txt-link-rfc2396E" href="mailto:merks@ca.ibm.com">&lt;merks@ca.ibm.com&gt;</a> wrote in message
<a class="moz-txt-link-freetext" href="news:f19rtj$pib$5@build.eclipse.org">news:f19rtj$pib$5@build.eclipse.org</a>...
</pre>
<blockquote type="cite">
<pre wrap="">Kashif,

I think the XML catalog would solve this problem too.


kashif wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
I will appriciate if anyone let me know if it is possible to set a
customize validator to resolve the schema URL?? Might be there is a way
to just using the schema file name I can append the absolute path to the
schema location.

My requirement is I don't want to have absolute or relative path with in
the XML file and just want ot have schema file name.

Thanks,
Kashif


</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->

</pre>
</blockquote>
<br>
</body>
</html>

--------------000505080705070406080702--
Re: customize XMl validator [message #191934 is a reply to message #191925] Wed, 02 May 2007 12:33 Go to previous messageGo to next message
kashif is currently offline kashifFriend
Messages: 16
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.

------=_NextPart_000_00B2_01C78CE0.0A9CF550
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Ed Merks,

Yes indeed this is what I was thinking but with this a new issue comes =
up that is. When I use xsi:schemaLocation=3D"../../My.xsd" then our =
user can have options to move this file to another folder that is not at =
the same level. Then user has to manually change the relative path which =
I don't want. I was thinking if I can do somehting prgrammatically to =
confugure the EntityResolver or something like that. Might be I =
internally can set the full URL just based on schema file name??

Thanks,
Kashif
"Ed Merks" <merks@ca.ibm.com> wrote in message =
news:f19ubg$bd$1@build.eclipse.org...
Kashif,

It's always possible to use a relative path with an =
xsi:schemaLocation, e.g., xsi:schemaLocation=3D"../../My.xsd" so if the =
..xsd and .xml are in the same project, that approach should work. If =
they are in different projects, you'll need to refer to the project name =
somehow and if indirection through the catalog isn't sufficient, I don't =
think there's another way.


kashif wrote:=20
Hi Merks,

I used XMl catlog but it does add full path in the XML location =
attribute.=20
Also it comes to another issue like it will not be poosible for the user =
to=20
share his project for other user. As there might be every user has to=20
configure a catlog entry. So my requirement is it hsould have solved in =
a=20
generic way. Like just adding the name of the schema and there should be =

some other way through programmatically may be.

Thanks,
Kashif

"Ed Merks" <merks@ca.ibm.com> wrote in message=20
news:f19rtj$pib$5@build.eclipse.org...
Kashif,

I think the XML catalog would solve this problem too.


kashif wrote:
Hi,
I will appriciate if anyone let me know if it is possible to set a=20
customize validator to resolve the schema URL?? Might be there is a way=20
to just using the schema file name I can append the absolute path to the =

schema location.

My requirement is I don't want to have absolute or relative path with in =

the XML file and just want ot have schema file name.

Thanks,
Kashif


=20

=20

------=_NextPart_000_00B2_01C78CE0.0A9CF550
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type =
content=3Dtext/html;charset=3DISO-8859-1>
<META content=3D"MSHTML 6.00.2900.3059" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY text=3D#000000 bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi Ed Merks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Yes indeed this is what I was thinking =
but with=20
this&nbsp;a new issue comes up that is. When&nbsp;I&nbsp; use <FONT=20
face=3D"Times New Roman" =
size=3D3>xsi:schemaLocation=3D"../../My.xsd"&nbsp;then=20
our&nbsp;user can have options to move this file to another folder that =
is not=20
at the same level. Then user has to manually change the relative path =
which I=20
don't want. I was thinking if I can do somehting prgrammatically to =
confugure=20
the EntityResolver or something like that. Might be I internally can set =
the=20
full URL just based on schema file name??</FONT></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Kashif</FONT></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Ed Merks" &lt;<A =
href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>&gt;=20
wrote in message <A=20
=
href=3D"news:f19ubg$bd$1@build.eclipse.org">news:f19ubg$bd$1@build.eclips=
e.org</A>...</DIV>Kashif,<BR><BR>It's=20
always possible to use a relative path with an xsi:schemaLocation, =
e.g.,=20
xsi:schemaLocation=3D"../../My.xsd" so if the .xsd and .xml are in the =
same=20
project, that approach should work.&nbsp; If they are in different =
projects,=20
you'll need to refer to the project name somehow and if indirection =
through=20
the catalog isn't sufficient, I don't think there's another=20
way.<BR><BR><BR>kashif wrote:=20
<BLOCKQUOTE cite=3Dmidf19u3c$vef$1@build.eclipse.org =
type=3D"cite"><PRE wrap=3D"">Hi Merks,

I used XMl catlog but it does add full path in the XML location =
attribute.=20
Also it comes to another issue like it will not be poosible for the user =
to=20
share his project for other user. As there might be every user has to=20
configure a catlog entry. So my requirement is it hsould have solved in =
a=20
generic way. Like just adding the name of the schema and there should be =

some other way through programmatically may be.

Thanks,
Kashif

"Ed Merks" <A class=3Dmoz-txt-link-rfc2396E =
href=3D"mailto:merks@ca.ibm.com">&lt;merks@ca.ibm.com&gt;</A> wrote in =
message=20
<A class=3Dmoz-txt-link-freetext =
href=3D"news:f19rtj$pib$5@build.eclipse.org">news:f19rtj$pib$5@build.ecli=
pse.org</A>...
</PRE>
<BLOCKQUOTE type=3D"cite"><PRE wrap=3D"">Kashif,

I think the XML catalog would solve this problem too.


kashif wrote:
</PRE>
<BLOCKQUOTE type=3D"cite"><PRE wrap=3D"">Hi,
I will appriciate if anyone let me know if it is possible to set a=20
customize validator to resolve the schema URL?? Might be there is a way=20
to just using the schema file name I can append the absolute path to the =

schema location.

My requirement is I don't want to have absolute or relative path with in =

the XML file and just want ot have schema file name.

Thanks,
Kashif


</PRE></BLOCKQUOTE></BLOCKQUOTE><PRE wrap=3D""><!---->

</PRE></BLOCKQUOTE><BR></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_00B2_01C78CE0.0A9CF550--
Re: customize XMl validator [message #191941 is a reply to message #191934] Wed, 02 May 2007 12:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------070500030009040608000303
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Kashif,

I'm not sure if WTP provides refactoring support that would fix relative
locations when the document is moved, but that's certainly possible.


kashif wrote:
> Hi Ed Merks,
>
> Yes indeed this is what I was thinking but with this a new issue comes
> up that is. When I use xsi:schemaLocation="../../My.xsd" then
> our user can have options to move this file to another folder that is
> not at the same level. Then user has to manually change the relative
> path which I don't want. I was thinking if I can do somehting
> prgrammatically to confugure the EntityResolver or something like
> that. Might be I internally can set the full URL just based on schema
> file name??
>
> Thanks,
> Kashif
>
> "Ed Merks" <merks@ca.ibm.com <mailto:merks@ca.ibm.com>> wrote in
> message news:f19ubg$bd$1@build.eclipse.org...
> Kashif,
>
> It's always possible to use a relative path with an
> xsi:schemaLocation, e.g., xsi:schemaLocation="../../My.xsd" so if
> the .xsd and .xml are in the same project, that approach should
> work. If they are in different projects, you'll need to refer to
> the project name somehow and if indirection through the catalog
> isn't sufficient, I don't think there's another way.
>
>
> kashif wrote:
>> Hi Merks,
>>
>> I used XMl catlog but it does add full path in the XML location attribute.
>> Also it comes to another issue like it will not be poosible for the user to
>> share his project for other user. As there might be every user has to
>> configure a catlog entry. So my requirement is it hsould have solved in a
>> generic way. Like just adding the name of the schema and there should be
>> some other way through programmatically may be.
>>
>> Thanks,
>> Kashif
>>
>> "Ed Merks" <merks@ca.ibm.com> wrote in message
>> news:f19rtj$pib$5@build.eclipse.org...
>>
>>> Kashif,
>>>
>>> I think the XML catalog would solve this problem too.
>>>
>>>
>>> kashif wrote:
>>>
>>>> Hi,
>>>> I will appriciate if anyone let me know if it is possible to set a
>>>> customize validator to resolve the schema URL?? Might be there is a way
>>>> to just using the schema file name I can append the absolute path to the
>>>> schema location.
>>>>
>>>> My requirement is I don't want to have absolute or relative path with in
>>>> the XML file and just want ot have schema file name.
>>>>
>>>> Thanks,
>>>> Kashif
>>>>
>>>>
>>>>
>>
>>
>>
>


--------------070500030009040608000303
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Kashif,<br>
<br>
I'm not sure if WTP provides refactoring support that would fix
relative locations when the document is moved, but that's certainly
possible.<br>
<br>
<br>
kashif wrote:
<blockquote cite="midf1a0ff$511$1@build.eclipse.org" type="cite">
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<meta content="MSHTML 6.00.2900.3059" name="GENERATOR">
<style></style>
<div><font face="Arial" size="2">Hi Ed Merks,</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">Yes indeed this is what I was
thinking but with this&nbsp;a new issue comes up that is. When&nbsp;I&nbsp; use <font
face="Times New Roman" size="3">xsi:schemaLocation="../../My.xsd"&nbsp;then
our&nbsp;user can have options to move this file to another folder that is
not at the same level. Then user has to manually change the relative
path which I don't want. I was thinking if I can do somehting
prgrammatically to confugure the EntityResolver or something like that.
Might be I internally can set the full URL just based on schema file
name??</font></font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">Thanks,</font></div>
<div><font face="Arial" size="2">Kashif</font></div>
<blockquote
style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div>"Ed Merks" &lt;<a href="mailto:merks@ca.ibm.com">merks@ca.ibm.com</a>&gt;
wrote in message <a href="news:f19ubg$bd$1@build.eclipse.org">news:f19ubg$bd$1@build.eclipse.org</a>...</div>
Kashif,<br>
<br>
It's always possible to use a relative path with an xsi:schemaLocation,
e.g., xsi:schemaLocation="../../My.xsd" so if the .xsd and .xml are in
the same project, that approach should work.&nbsp; If they are in different
projects, you'll need to refer to the project name somehow and if
indirection through the catalog isn't sufficient, I don't think there's
another way.<br>
<br>
<br>
kashif wrote:
<blockquote cite="midf19u3c$vef$1@build.eclipse.org" type="cite">
<pre wrap="">Hi Merks,

I used XMl catlog but it does add full path in the XML location attribute.
Also it comes to another issue like it will not be poosible for the user to
share his project for other user. As there might be every user has to
configure a catlog entry. So my requirement is it hsould have solved in a
generic way. Like just adding the name of the schema and there should be
some other way through programmatically may be.

Thanks,
Kashif

"Ed Merks" <a class="moz-txt-link-rfc2396E"
href="mailto:merks@ca.ibm.com">&lt;merks@ca.ibm.com&gt;</a> wrote in message
<a class="moz-txt-link-freetext"
href="news:f19rtj$pib$5@build.eclipse.org">news:f19rtj$pib$5@build.eclipse.org</a>...
</pre>
<blockquote type="cite">
<pre wrap="">Kashif,

I think the XML catalog would solve this problem too.


kashif wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
I will appriciate if anyone let me know if it is possible to set a
customize validator to resolve the schema URL?? Might be there is a way
to just using the schema file name I can append the absolute path to the
schema location.

My requirement is I don't want to have absolute or relative path with in
the XML file and just want ot have schema file name.

Thanks,
Kashif


</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->

</pre>
</blockquote>
<br>
</blockquote>
</blockquote>
<br>
</body>
</html>

--------------070500030009040608000303--
Re: customize XMl validator [message #191945 is a reply to message #191941] Wed, 02 May 2007 13:07 Go to previous messageGo to next message
kashif is currently offline kashifFriend
Messages: 16
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.

------=_NextPart_000_00DC_01C78CE4.D04121B0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Ed Merks,

Might be I can update the moving file through resource change listener. =
But their might be some resource opened in the Editor then I was =
thinking that it might be a conflict. If you have any idea before please =
do comment. Otherwise I will try to have fix for my problem in this =
direction.

Thanks,
Kashif




"Ed Merks" <merks@ca.ibm.com> wrote in message =
news:f1a0op$5he$2@build.eclipse.org...
Kashif,

I'm not sure if WTP provides refactoring support that would fix =
relative locations when the document is moved, but that's certainly =
possible.


kashif wrote:=20
Hi Ed Merks,

Yes indeed this is what I was thinking but with this a new issue =
comes up that is. When I use xsi:schemaLocation=3D"../../My.xsd" then =
our user can have options to move this file to another folder that is =
not at the same level. Then user has to manually change the relative =
path which I don't want. I was thinking if I can do somehting =
prgrammatically to confugure the EntityResolver or something like that. =
Might be I internally can set the full URL just based on schema file =
name??

Thanks,
Kashif
"Ed Merks" <merks@ca.ibm.com> wrote in message =
news:f19ubg$bd$1@build.eclipse.org...
Kashif,

It's always possible to use a relative path with an =
xsi:schemaLocation, e.g., xsi:schemaLocation=3D"../../My.xsd" so if the =
..xsd and .xml are in the same project, that approach should work. If =
they are in different projects, you'll need to refer to the project name =
somehow and if indirection through the catalog isn't sufficient, I don't =
think there's another way.


kashif wrote:=20
Hi Merks,

I used XMl catlog but it does add full path in the XML location =
attribute.=20
Also it comes to another issue like it will not be poosible for the user =
to=20
share his project for other user. As there might be every user has to=20
configure a catlog entry. So my requirement is it hsould have solved in =
a=20
generic way. Like just adding the name of the schema and there should be =

some other way through programmatically may be.

Thanks,
Kashif

"Ed Merks" <merks@ca.ibm.com> wrote in message=20
news:f19rtj$pib$5@build.eclipse.org...
Kashif,

I think the XML catalog would solve this problem too.


kashif wrote:
Hi,
I will appriciate if anyone let me know if it is possible to set a=20
customize validator to resolve the schema URL?? Might be there is a way=20
to just using the schema file name I can append the absolute path to the =

schema location.

My requirement is I don't want to have absolute or relative path with in =

the XML file and just want ot have schema file name.

Thanks,
Kashif


=20

=20



------=_NextPart_000_00DC_01C78CE4.D04121B0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type =
content=3Dtext/html;charset=3DISO-8859-1>
<META content=3D"MSHTML 6.00.2900.3059" name=3DGENERATOR></HEAD>
<BODY text=3D#000000 bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi Ed Merks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Might be I&nbsp;can update =
the&nbsp;moving file=20
through&nbsp;resource change listener.&nbsp;But their might be some =
resource=20
opened in the Editor then I was thinking that it might be a conflict. If =
you=20
have any idea before please do comment. Otherwise I will try to have fix =
for my=20
problem in this direction.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Kashif</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Ed Merks" &lt;<A =
href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>&gt;=20
wrote in message <A=20
=
href=3D"news:f1a0op$5he$2@build.eclipse.org">news:f1a0op$5he$2@build.ecli=
pse.org</A>...</DIV>Kashif,<BR><BR>I'm=20
not sure if WTP provides refactoring support that would fix relative =
locations=20
when the document is moved, but that's certainly =
possible.<BR><BR><BR>kashif=20
wrote:=20
<BLOCKQUOTE cite=3Dmidf1a0ff$511$1@build.eclipse.org type=3D"cite">
<META content=3D"MSHTML 6.00.2900.3059" name=3DGENERATOR>
<STYLE></STYLE>

<DIV><FONT face=3DArial size=3D2>Hi Ed Merks,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Yes indeed this is what I was =
thinking but with=20
this&nbsp;a new issue comes up that is. When&nbsp;I&nbsp; use <FONT=20
face=3D"Times New Roman" =
size=3D3>xsi:schemaLocation=3D"../../My.xsd"&nbsp;then=20
our&nbsp;user can have options to move this file to another folder =
that is=20
not at the same level. Then user has to manually change the relative =
path=20
which I don't want. I was thinking if I can do somehting =
prgrammatically to=20
confugure the EntityResolver or something like that. Might be I =
internally=20
can set the full URL just based on schema file =
name??</FONT></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Kashif</FONT></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Ed Merks" &lt;<A=20
href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>&gt; wrote in =
message=20
<A=20
=
href=3D"news:f19ubg$bd$1@build.eclipse.org">news:f19ubg$bd$1@build.eclips=
e.org</A>...</DIV>Kashif,<BR><BR>It's=20
always possible to use a relative path with an xsi:schemaLocation, =
e.g.,=20
xsi:schemaLocation=3D"../../My.xsd" so if the .xsd and .xml are in =
the same=20
project, that approach should work.&nbsp; If they are in different =

projects, you'll need to refer to the project name somehow and if=20
indirection through the catalog isn't sufficient, I don't think =
there's=20
another way.<BR><BR><BR>kashif wrote:=20
<BLOCKQUOTE cite=3Dmidf19u3c$vef$1@build.eclipse.org =
type=3D"cite"><PRE wrap=3D"">Hi Merks,

I used XMl catlog but it does add full path in the XML location =
attribute.=20
Also it comes to another issue like it will not be poosible for the user =
to=20
share his project for other user. As there might be every user has to=20
configure a catlog entry. So my requirement is it hsould have solved in =
a=20
generic way. Like just adding the name of the schema and there should be =

some other way through programmatically may be.

Thanks,
Kashif

"Ed Merks" <A class=3Dmoz-txt-link-rfc2396E =
href=3D"mailto:merks@ca.ibm.com">&lt;merks@ca.ibm.com&gt;</A> wrote in =
message=20
<A class=3Dmoz-txt-link-freetext =
href=3D"news:f19rtj$pib$5@build.eclipse.org">news:f19rtj$pib$5@build.ecli=
pse.org</A>...
</PRE>
<BLOCKQUOTE type=3D"cite"><PRE wrap=3D"">Kashif,

I think the XML catalog would solve this problem too.


kashif wrote:
</PRE>
<BLOCKQUOTE type=3D"cite"><PRE wrap=3D"">Hi,
I will appriciate if anyone let me know if it is possible to set a=20
customize validator to resolve the schema URL?? Might be there is a way=20
to just using the schema file name I can append the absolute path to the =

schema location.

My requirement is I don't want to have absolute or relative path with in =

the XML file and just want ot have schema file name.

Thanks,
Kashif


</PRE></BLOCKQUOTE></BLOCKQUOTE><PRE wrap=3D""><!---->

=
</PRE></BLOCKQUOTE><BR></BLOCKQUOTE></BLOCKQUOTE><BR></BLOCKQUOTE ></BODY>=
</HTML>

------=_NextPart_000_00DC_01C78CE4.D04121B0--
Re: customize XMl validator [message #191946 is a reply to message #191945] Wed, 02 May 2007 15:05 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------020401060108020202070607
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Kashif,

I think Eclipse has a refactoring API that you can contribute to for
this type of thing, but I don't know even the first thing about how that
works.


kashif wrote:
> Hi Ed Merks,
>
> Might be I can update the moving file through resource change
> listener. But their might be some resource opened in the Editor then I
> was thinking that it might be a conflict. If you have any idea before
> please do comment. Otherwise I will try to have fix for my problem in
> this direction.
>
> Thanks,
> Kashif
>
>
>
>
>
> "Ed Merks" <merks@ca.ibm.com <mailto:merks@ca.ibm.com>> wrote in
> message news:f1a0op$5he$2@build.eclipse.org...
> Kashif,
>
> I'm not sure if WTP provides refactoring support that would fix
> relative locations when the document is moved, but that's
> certainly possible.
>
>
> kashif wrote:
>> Hi Ed Merks,
>>
>> Yes indeed this is what I was thinking but with this a new issue
>> comes up that is. When I use
>> xsi:schemaLocation="../../My.xsd" then our user can have options
>> to move this file to another folder that is not at the same
>> level. Then user has to manually change the relative path which I
>> don't want. I was thinking if I can do somehting prgrammatically
>> to confugure the EntityResolver or something like that. Might be
>> I internally can set the full URL just based on schema file name??
>>
>> Thanks,
>> Kashif
>>
>> "Ed Merks" <merks@ca.ibm.com <mailto:merks@ca.ibm.com>> wrote
>> in message news:f19ubg$bd$1@build.eclipse.org...
>> Kashif,
>>
>> It's always possible to use a relative path with an
>> xsi:schemaLocation, e.g., xsi:schemaLocation="../../My.xsd"
>> so if the .xsd and .xml are in the same project, that
>> approach should work. If they are in different projects,
>> you'll need to refer to the project name somehow and if
>> indirection through the catalog isn't sufficient, I don't
>> think there's another way.
>>
>>
>> kashif wrote:
>>> Hi Merks,
>>>
>>> I used XMl catlog but it does add full path in the XML location attribute.
>>> Also it comes to another issue like it will not be poosible for the user to
>>> share his project for other user. As there might be every user has to
>>> configure a catlog entry. So my requirement is it hsould have solved in a
>>> generic way. Like just adding the name of the schema and there should be
>>> some other way through programmatically may be.
>>>
>>> Thanks,
>>> Kashif
>>>
>>> "Ed Merks" <merks@ca.ibm.com> wrote in message
>>> news:f19rtj$pib$5@build.eclipse.org...
>>>
>>>> Kashif,
>>>>
>>>> I think the XML catalog would solve this problem too.
>>>>
>>>>
>>>> kashif wrote:
>>>>
>>>>> Hi,
>>>>> I will appriciate if anyone let me know if it is possible to set a
>>>>> customize validator to resolve the schema URL?? Might be there is a way
>>>>> to just using the schema file name I can append the absolute path to the
>>>>> schema location.
>>>>>
>>>>> My requirement is I don't want to have absolute or relative path with in
>>>>> the XML file and just want ot have schema file name.
>>>>>
>>>>> Thanks,
>>>>> Kashif
>>>>>
>>>>>
>>>>>
>>>
>>>
>>>
>>
>


--------------020401060108020202070607
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Kashif,<br>
<br>
I think Eclipse has a refactoring API that you can contribute to for
this type of thing, but I don't know even the first thing about how
that works.<br>
<br>
<br>
kashif wrote:
<blockquote cite="midf1a2ff$9qd$1@build.eclipse.org" type="cite">
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<meta content="MSHTML 6.00.2900.3059" name="GENERATOR">
<div><font face="Arial" size="2">Hi Ed Merks,</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">Might be I&nbsp;can update the&nbsp;moving
file through&nbsp;resource change listener.&nbsp;But their might be some resource
opened in the Editor then I was thinking that it might be a conflict.
If you have any idea before please do comment. Otherwise I will try to
have fix for my problem in this direction.</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">Thanks,</font></div>
<div><font face="Arial" size="2">Kashif</font></div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<blockquote
style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div>"Ed Merks" &lt;<a href="mailto:merks@ca.ibm.com">merks@ca.ibm.com</a>&gt;
wrote in message <a href="news:f1a0op$5he$2@build.eclipse.org">news:f1a0op$5he$2@build.eclipse.org</a>...</div>
Kashif,<br>
<br>
I'm not sure if WTP provides refactoring support that would fix
relative locations when the document is moved, but that's certainly
possible.<br>
<br>
<br>
kashif wrote:
<blockquote cite="midf1a0ff$511$1@build.eclipse.org" type="cite">
<meta content="MSHTML 6.00.2900.3059" name="GENERATOR">
<style></style>
<div><font face="Arial" size="2">Hi Ed Merks,</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">Yes indeed this is what I was
thinking but with this&nbsp;a new issue comes up that is. When&nbsp;I&nbsp; use <font
face="Times New Roman" size="3">xsi:schemaLocation="../../My.xsd"&nbsp;then
our&nbsp;user can have options to move this file to another folder that is
not at the same level. Then user has to manually change the relative
path which I don't want. I was thinking if I can do somehting
prgrammatically to confugure the EntityResolver or something like that.
Might be I internally can set the full URL just based on schema file
name??</font></font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">Thanks,</font></div>
<div><font face="Arial" size="2">Kashif</font></div>
<blockquote
style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div>"Ed Merks" &lt;<a href="mailto:merks@ca.ibm.com">merks@ca.ibm.com</a>&gt;
wrote in message <a href="news:f19ubg$bd$1@build.eclipse.org">news:f19ubg$bd$1@build.eclipse.org</a>...</div>
Kashif,<br>
<br>
It's always possible to use a relative path with an xsi:schemaLocation,
e.g., xsi:schemaLocation="../../My.xsd" so if the .xsd and .xml are in
the same project, that approach should work.&nbsp; If they are in different
projects, you'll need to refer to the project name somehow and if
indirection through the catalog isn't sufficient, I don't think there's
another way.<br>
<br>
<br>
kashif wrote:
<blockquote cite="midf19u3c$vef$1@build.eclipse.org" type="cite">
<pre wrap="">Hi Merks,

I used XMl catlog but it does add full path in the XML location attribute.
Also it comes to another issue like it will not be poosible for the user to
share his project for other user. As there might be every user has to
configure a catlog entry. So my requirement is it hsould have solved in a
generic way. Like just adding the name of the schema and there should be
some other way through programmatically may be.

Thanks,
Kashif

"Ed Merks" <a class="moz-txt-link-rfc2396E"
href="mailto:merks@ca.ibm.com">&lt;merks@ca.ibm.com&gt;</a> wrote in message
<a class="moz-txt-link-freetext"
href="news:f19rtj$pib$5@build.eclipse.org">news:f19rtj$pib$5@build.eclipse.org</a>...
</pre>
<blockquote type="cite">
<pre wrap="">Kashif,

I think the XML catalog would solve this problem too.


kashif wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
I will appriciate if anyone let me know if it is possible to set a
customize validator to resolve the schema URL?? Might be there is a way
to just using the schema file name I can append the absolute path to the
schema location.

My requirement is I don't want to have absolute or relative path with in
the XML file and just want ot have schema file name.

Thanks,
Kashif


</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->

</pre>
</blockquote>
<br>
</blockquote>
</blockquote>
<br>
</blockquote>
</blockquote>
<br>
</body>
</html>

--------------020401060108020202070607--
Previous Topic:extension points to extend WST XML editor
Next Topic:Classpath entry will not be exported or published.
Goto Forum:
  


Current Time: Fri Apr 26 12:36:45 GMT 2024

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

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

Back to the top