W3C home > Mailing lists > Public > xproc-dev@w3.org > October 2009

Calabash: several schema docs with Xerces

From: Florent Georges <fgeorges@fgeorges.org>
Date: Sun, 25 Oct 2009 17:06:09 +0100
Message-ID: <ebaca5bf0910250906o61d53db2w88d9872aab3bd531@mail.gmail.com>
To: XProc Dev <xproc-dev@w3.org>
  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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 25 October 2009 16:06:44 GMT