You can't fix this by using .xsdconfig, you need to get a
new Schema file. If you look carefully at the "include" statement, you can
notice that Liberty-metadata.xsd is asking for the version 2.0 of the included
file, while that file is saying that its version is "2.0-02". My guess is that
the Schema author didn't want one version of one file to be used with another
version of the second file, probably for a good reason.
Radu From: Mani Balasubramani [mailto:[EMAIL PROTECTED] Sent: Saturday, August 19, 2006 12:47 AM To: user@xmlbeans.apache.org Subject: source and target namespace mismatch Hi, I’m trying to
generate xmlbeans out of liberty schema files. One of the liberty schema has the
following in it. Liberty-metadata.xsd <?xml version="1.0"
encoding="UTF-8"?> <xs:schema
targetNamespace="urn:liberty:metadata:2004-12"
xmlns="urn:liberty:metadata:2004-12"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
version="1.0"> <xs:import
namespace="http://www.w3.org/2000/09/xmldsig#"
schemaLocation="http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd"/> <xs:import
namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2001/xml.xsd"/> <xs:include
schemaLocation="liberty-idwsf-utility-v2.0.xsd"/> Liberty-idwsf-utility.xsd <?xml version="1.0"
encoding="UTF-8"?> <xs:schema
targetNamespace="urn:liberty:util:2005-11"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="urn:liberty:util:2005-11"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
version="2.0-02"> When I try to compile I get
this error – “liberty-metadata-v2.0.xsd:12:3:
error: Included schema has a target namespace "urn:liberty:util:2005-11" that
does not match the source namespace
"urn:liberty:metadata:2004-12" What should my .xsdconfig
file look like, so that I can generate xmlbeans out of liberty-metadata.xsd?
Thanks, Mani
|
- source and target namespace mismatch Mani Balasubramani
- RE: source and target namespace mismatch Radu Preotiuc-Pietro