Hi, When I use DOMConfiguration "schema-location" to parse a document with only one schema with target namespace http://www.example.com/Report, parsing works fine if I use schema-location "report.xsd". If I use schema-location "http://www.example.com/Report report.xsd", I again receive error message "failed to read schema document 'http://www.example.com/Report report.xsd'" so I think Xerces is expecting no target namespaces here.
I personally think that this behaviour is in line with the DOM level 3 spec. So my question remains, how do I specify more than one schema here? Thanks in advance, Carla > -----Original Message----- > From: Greg McCreath [mailto:[EMAIL PROTECTED] > Sent: dinsdag 15 april 2003 18:04 > To: [EMAIL PROTECTED] > Subject: RE: DOMConfiguration parameter "schema-location" > > > > It looks like that doesn't it. However, when coupled with an > EntityResolver, the parser is certainly looking for MySchema.xsd to be > resolved. > > _myDocumentBuilderFactory.setAttribute("http://java.sun.com/xm > l/jaxp/pro > perties/schemaSource", "MySchema.xsd"); > > > > -----Original Message----- > From: Elliotte Rusty Harold [mailto:[EMAIL PROTECTED] > Sent: 15 April 2003 17:54 > To: [EMAIL PROTECTED] > Subject: RE: DOMConfiguration parameter "schema-location" > > > Hmm, > > I was thinking of the pre-DOM 3 Xerces specific schemaLocation and > noNamespaceSchemaLocation properties, which I think give the user > what they're looking for here (i.e. complete override of whatever the > instance document says). I now see that the DOM3 is a little > different. > > However, it's still confusing. Then DOM 3 Core spec states: > > If validation occurs against a namespace aware schema, i.e. XML > Schema, and the targetNamespace of a schema (specified using this > property) matches the targetNamespace of a schema occurring in the > instance document, i.e in schemaLocation attribute, the schema > specified by the user using this property will be used (i.e., in XML > Schema the schemaLocation attribute in the instance document or on > the import element will be effectively ignored). > > So this seems to says that the schema-location property should > contain namespace URIs. However, the previous paragraph says the > opposite. Welcome to life on the bleeding edge. > > -- > > +-----------------------+------------------------+-------------------+ > | Elliotte Rusty Harold | [EMAIL PROTECTED] | Writer/Programmer | > +-----------------------+------------------------+-------------------+ > | Processing XML with Java (Addison-Wesley, 2002) | > | http://www.cafeconleche.org/books/xmljava | > | http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA | > +----------------------------------+---------------------------------+ > | Read Cafe au Lait for Java News: http://www.cafeaulait.org/ | > | Read Cafe con Leche for XML News: http://www.cafeconleche.org/ | > +----------------------------------+---------------------------------+ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
