logo       

Re: Multiple schema for schema-location: msg#00004

Subject: Re: Multiple schema for schema-location
Hi Jimmy,

The value you specified is in the wrong format. It's supposed to be a 
whitespace separated list [1] of URIs (i.e. no commas). It looks like we 
also have a bug since we're not tokenizing this list. Feel free to open a 
bug report in JIRA [2].

Thanks.

[1] 
http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#parameter-schema-location
[2] http://issues.apache.org/jira/browse/XERCESJ

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@xxxxxxxxxx
E-mail: mrglavas@xxxxxxxxxx

"Coyne, Jimmy" <Jimmy.Coyne@xxxxxxx> wrote on 04/03/2007 08:52:59 AM:

> Hi All,
> I'm using DOMConfiguration.normalizeDocument() method to validate an
> existing DOM object. This works fine when I use a single schema like 
below
> DOMConfiguration config = document.getDomConfig()
> config.setParameter("schema-location","employee.xsd");
> But if I use more than one to schema like below 
> config.setParameter("schema-location","employee.xsd , employee2.xsd");
> 
> I get the error 
> Failed to read schema document 'employee.xsd , employee2.xsd', 
> because 1) could not find the document; 2) the document could not be
> read; 3) the root element of the document is not <xsd:schema>.
> Any ideas ?
> Thanks
> Jimmy


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe