Page 1 of 1

Offline caching of schemas in Oxygen

Posted: Wed Mar 04, 2009 2:51 am
by kyagen
is there a way to easily cache schemas offline for use in the Oxygen XML eclipse plugin when working without internet access. I'd like this for autocomplete and schema validation. I've tried setting up XML catalogs in eclipse but haven't been able to get this approach to work with Oxygen (should it?) Is there another way?

I do notice that if I am connected to the internet when I open my document with Oxygen/Eclipse, it caches the schemas but if I open oxygen/eclipse fresh when not connected, I don't have a cache.

FYI, I have a rather large number of schemas and schema locations I am specifying and don't want to change the XML configuration if I don't have to in order to point to a local copy.

Thanks,

Ken

Re: Offline caching of schemas in Oxygen

Posted: Wed Mar 04, 2009 12:24 pm
by sorin_ristache
Hello,
kyagen wrote:I've tried setting up XML catalogs in eclipse but haven't been able to get this approach to work with Oxygen (should it?) Is there another way?
If you want to use the schemas when you do not have Internet access you have to set an XML catalog from menu Window -> Preferences -> Oxygen -> XML -> XML Catalog that maps the locations of the schemas to the local schemas stored on your computer. You can see if the map locations are correctly specified in the XML catalog in the log messages of the catalog resolver. You enable log messages for the catalog resolver with the option Verbosity available from menu Window -> Preferences -> Oxygen -> XML -> XML Catalog.
kyagen wrote:I do notice that if I am connected to the internet when I open my document with Oxygen/Eclipse, it caches the schemas but if I open oxygen/eclipse fresh when not connected, I don't have a cache.
The schema is cached in the Oxygen plugin when it it accessed the first time. If it was changed on disk you have to press the toolbar button Reset Cache and Validate. The caching is not saved to disk whe you close Eclipse so when you restart Eclipse the accessed schemas are cached again. That means without Internet access nothing is cached when you start Eclipse and validate an XML file in the Oxygen plugin.


Regards,
Sorin

Re: Offline caching of schemas in Oxygen

Posted: Thu Mar 05, 2009 3:49 am
by kyagen
Thanks. I was able to look at some of the other catalogs and find the right syntax to get it to work.