On Tue, Jan 15, 2013 at 11:58 AM, Andrea Aime <andrea.a...@geo-solutions.it> wrote: > Hi, > some time ago, while discussing validation issues in WCS 2.0 land and > the associated problems with the xlink update, Justin suggested we try to > update > all the OGC schemas in the GeoTools classpath to the latest version. > > I've tried to do so, but I'm stumbling against some walls. > Here is the branch where I'm doing the work: > https://github.com/aaime/geotools/tree/ogc_schema_update > > First off, I've found that some tests got extremely slow with the update. > I believe this is happening because most schemas OGC now use absolute > imports as opposed to relative ones. > For a tests using low level Eclipse XSD code I've rolled out a custom > URIHandler, see here: > https://github.com/aaime/geotools/commit/321ca6838c030473184ed0a0e7200a62e6b30ecc > > There is a number of tests that keeps on accessing > http://www.w3c.org/2001/xml.xsd > despite my best efforts. I thought it would have been sufficient to add the > XML schema > class to the dependencies of other basic schema, such as GML, OWS and so on, > but > that does not quite do it in all cases. > OGCFilterTest.testBBOXValidateWithoutPropertyName is an example of a test > that keeps on downloading xml.xsd > > Other tests that seems to be downloading half of the internet are: > GML3EncodingTest > org.geotools.filter.v2_0.bindings.MetByBindingTest > org.geotools.filter.v2_0.bindings.FilterTypeBindingTest > > The last test is also failing, but it takes 50+ seconds just to get it > initialized, > so I basically gave up. > > Anyone with quick ideas on how to avoid all these downloads?
Only thing that comes to mind is that the "standard" way of doing so would be using an xml catalog. The app schema crew may be using it someplace, and what's being used might be a bit dated already and standard apis might have emerged during the years, etc etc. But yeah, it'd be just nice to go the "recomended" way and make use of an xml catalog. As of how, I'm sorry I don't really remember and don't even know if it'll plug in well with all our xml techs. Cheers, Gabriel. ------------------------------------------------------------------------------ Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery and much more. Keep your Java skills current with LearnJavaNow - 200+ hours of step-by-step video tutorials by Java experts. SALE $49.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122612 _______________________________________________ GeoTools-Devel mailing list GeoTools-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel