[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-user
Subject:    RE: source and target namespace mismatch
From:       "Radu Preotiuc-Pietro" <radup () bea ! com>
Date:       2006-08-30 16:39:18
Message-ID: 99479F4D39C9244F8E17E688193A3DD8BD7CB0 () repbex02 ! amer ! bea ! com
[Download RAW message or body]

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:Mani.Balasubramani@paybytouch.com] 
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/xmld
sig-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 postmaster@paybytouch.com 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.

[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1561" name=GENERATOR>
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
	COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
	COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
	COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
	COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
	FONT-WEIGHT: normal; COLOR: windowtext; FONT-STYLE: normal; FONT-FAMILY: "Courier \
New"; TEXT-DECORATION: none; mso-style-type: personal-compose }
DIV.Section1 {
	page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=216463316-30082006><FONT face=Arial 
color=#0000ff size=2>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,&nbsp;probably for a good reason.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=216463316-30082006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=216463316-30082006><FONT face=Arial 
color=#0000ff size=2>Radu</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Mani Balasubramani 
[mailto:Mani.Balasubramani@paybytouch.com] <BR><B>Sent:</B> Saturday, August 19, 
2006 12:47 AM<BR><B>To:</B> user@xmlbeans.apache.org<BR><B>Subject:</B> source 
and target namespace mismatch<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face="Courier New" size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">Hi,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp; I&#8217;m trying to 
generate xmlbeans out of liberty schema files. One of the liberty schema has the 
following in it.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier \
New'"><o:p>&nbsp;</o:p></SPAN></FONT></P> <DIV 
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none; \
PADDING-LEFT: 0in; PADDING-BOTTOM: 1pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; \
BORDER-BOTTOM: windowtext 1pt solid; mso-element: para-border-div"> <P \
class=MsoNormal  style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: \
medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; \
PADDING-TOP: 0in; BORDER-BOTTOM: medium none"><FONT  face="Courier New" size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier \
New'">Liberty-metadata.xsd<o:p></o:p></SPAN></FONT></P></DIV> <P \
class=MsoNormal><FONT face="Courier New" size=1><SPAN  style="FONT-SIZE: 9pt; \
FONT-FAMILY: 'Courier New'">&lt;?xml version="1.0"  \
encoding="UTF-8"?&gt;<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT \
face="Courier New" size=1><SPAN  style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier \
New'">&lt;xs:schema  targetNamespace="urn:liberty:metadata:2004-12" \
<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face="Courier New" \
size=1><SPAN  style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier New'">&nbsp; 
xmlns="urn:liberty:metadata:2004-12" <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=1><SPAN 
style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier New'">&nbsp; 
xmlns:ds="http://www.w3.org/2000/09/xmldsig#" <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=1><SPAN 
style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier New'">&nbsp; 
xmlns:xs="http://www.w3.org/2001/XMLSchema" <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=1><SPAN 
style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier New'">&nbsp; 
elementFormDefault="qualified" <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=1><SPAN 
style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier New'">&nbsp; 
attributeFormDefault="unqualified" 
version="1.0"&gt;<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=1><SPAN 
style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier New'">&nbsp; &lt;xs:import 
namespace="http://www.w3.org/2000/09/xmldsig#" <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=1><SPAN 
style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp; 
schemaLocation="http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd"/&gt;<o:p></o:p></SPAN></FONT></P>
 <P class=MsoNormal><FONT face="Courier New" size=1><SPAN 
style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier New'">&nbsp; &lt;xs:import 
namespace="http://www.w3.org/XML/1998/namespace" <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=1><SPAN 
style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp; 
schemaLocation="http://www.w3.org/2001/xml.xsd"/&gt;<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=1><SPAN 
style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier New'">&nbsp; &lt;xs:include 
schemaLocation="liberty-idwsf-utility-v2.0.xsd"/&gt;<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=1><SPAN 
style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier \
New'"><o:p>&nbsp;</o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face="Courier New" \
size=1><SPAN  style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier \
New'"><o:p>&nbsp;</o:p></SPAN></FONT></P> <DIV 
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none; \
PADDING-LEFT: 0in; PADDING-BOTTOM: 1pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; \
BORDER-BOTTOM: windowtext 1pt solid; mso-element: para-border-div"> <P \
class=MsoNormal  style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: \
medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; \
PADDING-TOP: 0in; BORDER-BOTTOM: medium none"><FONT  face="Courier New" size=1><SPAN 
style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier \
New'">Liberty-idwsf-utility.xsd<o:p></o:p></SPAN></FONT></P></DIV> <P \
class=MsoNormal><FONT face="Courier New" size=1><SPAN  style="FONT-SIZE: 9pt; \
FONT-FAMILY: 'Courier New'">&lt;?xml version="1.0"  \
encoding="UTF-8"?&gt;<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT \
face="Courier New" size=1><SPAN  style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier \
New'">&lt;xs:schema  \
targetNamespace="urn:liberty:util:2005-11"<o:p></o:p></SPAN></FONT></P> <P \
class=MsoNormal><FONT face="Courier New" size=1><SPAN  style="FONT-SIZE: 9pt; \
FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;  \
xmlns:xs="http://www.w3.org/2001/XMLSchema"<o:p></o:p></SPAN></FONT></P> <P \
class=MsoNormal><FONT face="Courier New" size=1><SPAN  style="FONT-SIZE: 9pt; \
FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;  \
xmlns="urn:liberty:util:2005-11"<o:p></o:p></SPAN></FONT></P> <P \
class=MsoNormal><FONT face="Courier New" size=1><SPAN  style="FONT-SIZE: 9pt; \
FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;  \
elementFormDefault="qualified"<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT \
face="Courier New" size=1><SPAN  style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier \
New'">&nbsp;&nbsp;&nbsp;  \
attributeFormDefault="unqualified"<o:p></o:p></SPAN></FONT></P> <P \
class=MsoNormal><FONT face="Courier New" size=1><SPAN  style="FONT-SIZE: 9pt; \
FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;  \
version="2.0-02"&gt;<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT \
face="Courier New" size=1><SPAN  style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier \
New'"><o:p>&nbsp;</o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face="Courier New" \
size=1><SPAN  style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier \
New'"><o:p>&nbsp;</o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face="Courier New" \
size=1><SPAN  style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier \
New'"><o:p>&nbsp;</o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face="Courier New" \
size=1><SPAN  style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier New'">When I try to \
compile I get  this error &#8211; <B><SPAN style="FONT-WEIGHT: \
                bold">&#8220;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"</SPAN></B><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=1><SPAN 
style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier \
New'"><o:p>&nbsp;</o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face="Courier New" \
size=1><SPAN  style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier New'">What should my \
.xsdconfig  file look like, so that I can generate xmlbeans out of \
liberty-metadata.xsd?  <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=1><SPAN 
style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier \
New'"><o:p>&nbsp;</o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face="Courier New" \
size=1><SPAN  style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier \
New'"><o:p>&nbsp;</o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face="Courier New" \
size=1><SPAN  style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier \
New'"><o:p>&nbsp;</o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face="Courier New" \
size=1><SPAN  style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier \
New'">Thanks,<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face="Courier \
New" size=1><SPAN  style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier \
New'">Mani</SPAN></FONT><FONT  face="Courier New" size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier \
New'"><o:p></o:p></SPAN></FONT></P></DIV> <H6><BR>
<HR>
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 postmaster@paybytouch.com and permanently delete the 
original copy and any copy of any e-mail, and any printout thereof. Thank you 
for your cooperation. <BR>
<HR>
<BR></H6></BODY></HTML>
<PRE>_______________________________________________________________________
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.
</PRE>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic