From: Sebastian B. <sb...@jb...> - 2004-08-06 12:30:13
|
On Friday 06 August 2004 14:11, you wrote: > Sebastian Bossung wrote: > >On Friday 06 August 2004 11:52, Jean-Marc Vanel wrote: > >>When I try putschema with a local database I get an exception. > >>Probably we need to apply the same kind of patch to > >>LocalCollection.java as we did for RemoteCollection.java? > > > >Yes, it is attatched. I was trying to keep the number of patches > > low. As I am always running the server standalone + an > > interactive "remote" client, I was somehow expecting everybody to > > do the same :-( > > There is one more dependancy: ant Sorry, I don't understand the ant dependancy. > > --------------------- > Next I have 2 crashes that moreover block the GUI :-(( . That's a because of the InteractiveClient only handling XMLDBExcpetions. If you change line 1072 (patched) to handle all exceptions, you get control back. > > This happens when doing: > putschema non-existing-file.xsd That's simply not handled. Production code needs to check for file existence. > > -------------------- > This happens when doing: > putschema test/addressBook.xsd > > where addressBook.xsd is without targetNamespace . > A schema without a targetnamespace can currently not be indexed because it cannot be stored in the index (the index is by target namespace). It is also hard to make use of later, because there is no way of referring to the schema. I am not sure how this can be handled later. What does the Multi-Schema-Validator do if you pass it a schema without target namespace? > ------------------ > Next stage: add a targetNamespace to addressBook.xsd : Does it work with target namespace? My intent was to first demonstrate the positive case. Sebastian |