Are you talking about OASIS Catalog ?
http://www.oasis-open.org/committees/entity/
I think Catalog is just a standardized way of writing an EntityResolver.
OASIS needs you to produce a standard XML that maps the public Ids to
local URIs. By using this method you simply would use library supplied
implementation of EntityResolve like OASISEntityResolver that
understands the Catalog XML.
Because Catalog is a standardized way, it will come in handy if you were
to use tools like <xslt> task of ANT.
Hope this helps.
-Prashant
Decoker, Lydie (Lydie) wrote:
Thx I see that some xsd had the same target namespace. I will correct
it.
By the way, should I use EntityResolver and Catalog for such validation?
I am not sure I have understood correctly their usage :o(
Lydie.
-----Original Message-----
From: Michael Glavassevich [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 21, 2006 16:16
To: [email protected]
Subject: Re: Trying to validate XML files using several XSD
It means two or more of the schema documents you specified have the same
target namespace [1]. JAXP doesn't allow that. You need to make sure
each of the schemas you specify using the schemaSource property have a
unique target namespace.
[1] http://www.w3.org/TR/xmlschema-1/#key-targetNS
Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]
"Decoker, Lydie \(Lydie\)" <[EMAIL PROTECTED]> wrote on 09/21/2006
05:17:13 AM:
<snip/>
That time I have got:
java.lang.IllegalArgumentException: When using array of Objects as
the value of SCHEMA_SOURCE property , no two Schemas should share the
same targetNamespace.
I do not understand this error too.
To set the schema location, I did:
domFactory.setAttribute("http://java.sun.com/xml/jaxp/properties/schem
aS
ource", schemaLocation);
Thx in advance.
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]