Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » How to provide schema for naked xml?(Getting schema-support without any schema references)
How to provide schema for naked xml? [message #513110] Mon, 08 February 2010 21:14
fa Mising name is currently offline fa Mising nameFriend
Messages: 1
Registered: July 2009
Junior Member
Hi all,

We're creating editors for XML files that are well-formed but cannot have any schema reference at the top. We'd like to provide the schema to the Eclipse XML editor for purposes of validation (and content assist?). Back before Eclipse 3.2 we forked wst plugins to do this, but we'd like to use current best practices. However, after some research I don't see exactly how.

These extension points don't seem to have hooks for providing the schema:

I see how to create content-types and how that's associated with a validator, but not how that helps. One approach is to use our own validator, and just delegate to our selected schema as needed. Is that right?

The (old) extension to resolve URI's probably needs a URI to resolve (in these documents, there are no schema declarations):


I assume the same problem affects the catalog:
org.eclipse.wst.xml.core. catalogContributions

I considered trying to do a document provider to mock/insert the schema reference, but the extensions I saw were internal.

I've been through the WTP site and eclipsecon presentations, etc.

Any hints are welcome, even just open-source examples of others that have done this (e.g., eclipse ant ui is not based on wtp).

Thanks in advance,
Previous Topic:Customize publishing to the server
Next Topic:Click on JSP error to view source
Goto Forum:

Current Time: Fri Apr 20 18:52:43 GMT 2018

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

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