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



This email and any attachment(s) thereto, are intended for the use of the addressee(s) named herein and may contain legally privileged and or confidential information under applicable law. If you are not the intended recipient of this e-mail, you are hereby notified any dissemination, distribution or copying of this email, and any attachment(s) thereto, is strictly prohibited. If you have received this communication in error, please notify the sender at 415-281-2200 or via return e-mail at [EMAIL PROTECTED] and permanently delete the original copy and any copy of any e-mail, and any printout thereof. Thank you for your cooperation.


_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

Reply via email to