https://projects.ecoinformatics.org/ecoinfo/https://projects.ecoinformatics.org/ecoinfo/ecoinfo/favicon.ico?14691340362011-02-09T22:37:40ZEcoinformatics RedmineMetacat - Bug #5300: SchemaLocationResolver fails to download included xsd fileshttps://projects.ecoinformatics.org/ecoinfo/issues/5300?journal_id=183542011-02-09T22:37:40ZJing Taotao@nceas.ucsb.edu
<ul></ul><p>Here is a way probably resolve this issue:</p>
<p>In edu.ucsb.nceas.metacat.service.XMLSchemaService lcass, we will add two new methods:<br /> String[] getIncludeXSDFile(InputStream in); This method will parse the schema file(as an InputStream object) and get the list of include files.<br /> String getBaseURL(String schemaURL); Get the base url of the schema location.</p>
<p>In SchemaLocationReolver.uploadSchemaFromURL call those two methods (maybe recursively?) and will upload all included schema into Metacat.</p>
<p>Any comments?</p> Metacat - Bug #5300: SchemaLocationResolver fails to download included xsd fileshttps://projects.ecoinformatics.org/ecoinfo/issues/5300?journal_id=183552011-02-11T18:46:41ZJing Taotao@nceas.ucsb.edu
<ul></ul><p>Add a new class XMLSchemaPaser which can extract the included schema information.<br />In XMLSchemaService class, add a new method handleIncludedSchema, it recursively downloads the included schemas. I also wrote a junit test method to test the new change. It works. Close the bug.</p> Metacat - Bug #5300: SchemaLocationResolver fails to download included xsd fileshttps://projects.ecoinformatics.org/ecoinfo/issues/5300?journal_id=183562013-03-27T21:29:56ZRedmine Admin
<ul></ul><p>Original Bugzilla ID was 5300</p>