|How to provide schema for naked xml? [message #513110]
||Mon, 08 February 2010 21:14
| fa Mising name
Registered: July 2009
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:
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,
Powered by FUDForum
. Page generated in 0.04460 seconds