Problem in the way validator resolves location of imported schema PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3134 *** shadow/3134 Wed Aug 15 11:57:19 2001 --- shadow/3134.tmp.12029 Wed Aug 15 11:57:19 2001 *************** *** 0 **** --- 1,41 ---- + +============================================================================+ + | Problem in the way validator resolves location of imported schema | + +----------------------------------------------------------------------------+ + | Bug #: 3134 Product: Xerces-J | + | Status: NEW Version: 1.4.2 | + | Resolution: Platform: All | + | Severity: Major OS/Version: All | + | Priority: Other Component: Schema-Structures | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + Hi, + + When TraverseSchema class tries to resolve the location of the imported + schema give a relative URI, it first calls user-supplied resolver with + the relative URI. Instead, it should first expand it relative to the + location of the importing schema (if that piece of information is available). + Otherwise, user's resolver would be puzzled what to do with the relative + URI. + + The following is the suggested change in TraverseSchema.java. + + private Element openImportedSchema(String location) throws Exception { + // expand it before passing it to the parser + InputSource source = null; + location = expandSystemId(location, fCurrentSchemaURL); // tkamiya 2001- + 08-15 + if (fEntityResolver != null) { + source = fEntityResolver.resolveEntity("", location); + } + if (source == null) { + // location = expandSystemId(location, fCurrentSchemaURL); + source = new InputSource(location); + } + .... + + -Takuki Kamiya --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
