Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » XML schemes provision
XML schemes provision [message #214036] Tue, 20 May 2008 12:17 Go to next message
Walter Brunauer is currently offline Walter BrunauerFriend
Messages: 6
Registered: July 2009
Junior Member
Hi!

I just started using WTP (I am currently on 3.0 M7) and I managed to
provide my own XML schemes (i.e. namespace names) to the XML catalog
within the preferences via the
org.eclipse.wst.xml.core.catalogContributions extension point. However,
this does not suffice the requirements I have to cover within my
application. Two questions:

1. Is there any way to (maybe programmatically) provide different schemes
or different versions of the same schemes per project? If so, do I need
any specific nature or other properties for such projects?

2. Is there any chance to tell the XML editor to still look for XML schema
definitions in the provided entries within the XML catalog, if e.g. a
"xsi:schemaLocation" schema location reference in the XML file itself
cannot be resolved directly? Right now, there seems to be no fallback
mechanism in place...

Thanks a lot in advance for any hints,

Walter
Re: XML schemes provision [message #214044 is a reply to message #214036] Tue, 20 May 2008 13:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dcarver.starstandard.org

Walter Brunauer wrote:
> Hi!
>
> I just started using WTP (I am currently on 3.0 M7) and I managed to
> provide my own XML schemes (i.e. namespace names) to the XML catalog
> within the preferences via the
> org.eclipse.wst.xml.core.catalogContributions extension point. However,
> this does not suffice the requirements I have to cover within my
> application. Two questions:
>
> 1. Is there any way to (maybe programmatically) provide different
> schemes or different versions of the same schemes per project? If so, do
> I need any specific nature or other properties for such projects?

You will need to create a custom URIResolver or a Content-Type Describer
that handles the loading of the particular schema that you need loaded
at runtime. One such example is in the XSL Tooling incubator project
in the org.eclipse.wst.xsl.core plugin project.


>
> 2. Is there any chance to tell the XML editor to still look for XML
> schema definitions in the provided entries within the XML catalog, if
> e.g. a "xsi:schemaLocation" schema location reference in the XML file
> itself cannot be resolved directly? Right now, there seems to be no
> fallback mechanism in place...

I think your best bet is to go with a Custom Resolver.
Re: XML schemes provision [message #214120 is a reply to message #214044] Wed, 21 May 2008 10:24 Go to previous message
Walter Brunauer is currently offline Walter BrunauerFriend
Messages: 6
Registered: July 2009
Junior Member
Works like a charm, thanks!

Do you know by chance, how stable one could expect these extension points
and interfaces, i.e., when will they become official and public?

Thanks again,

Walter
Previous Topic:Tomcat-6
Next Topic:Changing plugin from custom to xml file extension
Goto Forum:
  


Current Time: Fri Apr 19 08:44:10 GMT 2024

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

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

Back to the top