Calabash: several schema docs with Xerces

  Hi,

  I am surprised to see the following piece of code in the method
ValidateWithXSD.validateWithXerces():

    XdmNode schemaNode = schemaDocuments.get(0);
    InputSource is = S9apiUtils.xdmToInputSource(runtime, schemaNode);
    is.setSystemId(schemaNode.getBaseURI().toASCIIString());
    Schema schema = factory.newSchema(new SAXSource(is));

  It seems only the first schema document is actually used.  Why
not use the method SchemaFactory.newSchema(Source[]) instead of
SchemaFactory.newSchema(Source)?  Did I miss something?

  Regards,

-- 
Florent Georges
http://www.fgeorges.org/

Received on Sunday, 25 October 2009 16:06:43 UTC