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/xml/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]