Hi Elliotte,

The docs at
http://xml.apache.org/xerces2-j/javadocs/dom3-api/org/apache/xerces/dom3
/DOMConfiguration.html say it *is* possible to use a list of URLs there
but only one of them can be a noNamespaceSchemaLocation schema.

I use this aspect of JAXP 1.2 to validate noNamespaceSchemaLocation type
documents and it appears to work fine.

I'm afraid I haven't used multiple URLs there.  It is possible that you
are expecting them all to be noNamespaceSchemaLocation schemas?

G.

-----Original Message-----
From: Carla Spruit [mailto:[EMAIL PROTECTED] 
Sent: 15 April 2003 16:30
To: [EMAIL PROTECTED]
Subject: RE: DOMConfiguration parameter "schema-location"




Hi Elliotte,

The (Dom Level 3) DOMConfiguration parameter 'schema-location' is a
string containing a list of URIs that represents the schemas against
which validation should occur. 
Unfortunately, it is not possible to specify (no)targetNamespaces in
this string like in 'schemaLocation' and 'noNamespaceSchemaLocation'
attributes or in external Xerces schema-location properties. 

Carla


> -----Original Message-----
> From: Elliotte Rusty Harold [mailto:[EMAIL PROTECTED]
> Sent: dinsdag 15 april 2003 14:58
> To: [EMAIL PROTECTED]
> Subject: Re: DOMConfiguration parameter "schema-location"
> 
> 
> 
> >According to the DOMConfiguration javadoc, it should be possible to 
> >specify multiple schema's in 'schema-location' by using
> separator space.
> >When I try to parse a document i.e. '4Q99.xml' with schema-location 
> >value 'report.xsd ipo.xsd address.xsd' an error is reported saying 
> >"failed to read schema document 'report.xsd ipo.xsd address.xsd'" The

> >errormessage  suggests that the schema-location string is
> interpreted as
> >the URI of one single schema document.
> >
> 
> Since you haven't specified any namespace URIs I suspect you should
> be using noNamespaceSchemaLocation instead.
> -- 
> 
> +-----------------------+------------------------+-------------------+
> | 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]

Reply via email to