Validating documents opened from eXist database

I am using the oXygen plugin for Eclipse. When I open a XML document normally, it uses the schema I've set up through the Default Schema Association, but when I open a document loaded from a connection to an eXist database, it doesn't seem to want to use that schema. Is there a way to get Eclipse to use my locally stored schema to validate the the XML I've opened from eXist? Thank you for any help. -- Daniel E. Renfer http://kronkltd.net/

I am using the oXygen plugin for Eclipse. When I open a XML document normally, it uses the schema I've set up through the Default Schema Association, but when I open a document loaded from a connection to an eXist database, it doesn't seem to want to use that schema.
You could also store your document into a database collection, then link to it from your document via the REST server, i.e. with a URL like http://localhost:8080/exist/rest/db/myschema.xsd That's how I usually do it, but there might be other ways. Wolfgang

Hello, When the document is opened from a database connection oXygen tries to load a schema for the document from the same connection. Usually each database has a specific mechanism for associating a schema with a document. In case there is no schema associated in the database oXygen 8.2 does not try the default schema associations defined in the user preferences. Now we enhanced this by trying also the default associations in this case. A patch with the enhancement is available at: http://www.oxygenxml.com/update/8.2/oxygenEclipse.jar Just replace [Eclipse-install-folder]/plugins/com.oxygenxml.editor_8.2.0/lib/oxygenEclipse.jar with the above patched jar file and start Eclipse with the -clean parameter. Regards, Sorin Daniel E. Renfer wrote:
I am using the oXygen plugin for Eclipse. When I open a XML document normally, it uses the schema I've set up through the Default Schema Association, but when I open a document loaded from a connection to an eXist database, it doesn't seem to want to use that schema.
Is there a way to get Eclipse to use my locally stored schema to validate the the XML I've opened from eXist?
Thank you for any help.

Thanks a lot! I updated the jar, started Eclipse up, and opened a file stored in my eXist database. It is now offering me content completion based on the schema stored on my hard drive. So, am I understanding you correctly that it will first check to see if eXist has a way to validate the document, and failing that, use the default schema? Can we assume that this will be built into the next version of oXygen? -- Daniel E. Renfer http://kronkltd.net/ On 6/21/07, Sorin Ristache <sorin@oxygenxml.com> wrote:
Hello,
When the document is opened from a database connection oXygen tries to load a schema for the document from the same connection. Usually each database has a specific mechanism for associating a schema with a document. In case there is no schema associated in the database oXygen 8.2 does not try the default schema associations defined in the user preferences. Now we enhanced this by trying also the default associations in this case. A patch with the enhancement is available at:
http://www.oxygenxml.com/update/8.2/oxygenEclipse.jar
Just replace [Eclipse-install-folder]/plugins/com.oxygenxml.editor_8.2.0/lib/oxygenEclipse.jar with the above patched jar file and start Eclipse with the -clean parameter.
Regards, Sorin
Daniel E. Renfer wrote:
I am using the oXygen plugin for Eclipse. When I open a XML document normally, it uses the schema I've set up through the Default Schema Association, but when I open a document loaded from a connection to an eXist database, it doesn't seem to want to use that schema.
Is there a way to get Eclipse to use my locally stored schema to validate the the XML I've opened from eXist?
Thank you for any help.
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Hello, Yes, you understand correctly. It will be also included in the next version of oXygen. Regards, Sorin Daniel E. Renfer wrote:
Thanks a lot!
I updated the jar, started Eclipse up, and opened a file stored in my eXist database. It is now offering me content completion based on the schema stored on my hard drive.
So, am I understanding you correctly that it will first check to see if eXist has a way to validate the document, and failing that, use the default schema?
Can we assume that this will be built into the next version of oXygen?
participants (3)
-
Daniel E. Renfer
-
Sorin Ristache
-
Wolfgang Meier