Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow to provide schema for naked xml?
https://www.eclipse.org/forums/index.php/mv/msg/162262/513110/#msg_513110
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:
org.eclipse.wst.sse.ui.editorConfiguration
org.eclipse.wst.validation.validatorV2
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):