List Info

Thread: RE: Can XMLBeans work with OASIS EML xsd ?




RE: Can XMLBeans work with OASIS EML xsd ?
country flaguser name
United States
2007-06-13 21:03:09
Radu,
 
Thanks for taking the time to check all this. ; Yes - each one should be compiled separately - e.g. the main XSD parent files are 110, 120, 210, 320, 410, 440, and so on.
Concur on the error in the 440-460 include - will fix that.
 
Glad this is now all resolved.
Thanks, DW
-------- Original Message --------
Subject: RE: Can XMLBeans work with OASIS EML xsd ?
From: "Radu Preotiuc-Pietro" <radupbea.com>;
Date: Fri, June 08, 2007 5:15 pm
To: <userxmlbeans.apache.org&gt;

I have just tried the link and I got different results.
 
If I try to compile all the schemas at once ("scomp EML-v5-0-schemas-060629") I get a lot of errors of the form:
 
 Duplicate global element: urn:oasis:names:tc:evs:schema:eml" target=_blank>EMLurn:oasis:names:tc:evs:schema:eml (Original global element found in file: 110-electionevent-v5-0.xsd) ; &nbsp; &nbsp; &nbsp;
 
This means that this set of Schemas is not designed to be compiled all at once, but it has several pieces that need to be compiled separately.
 
If I ignore the duplicate global element errors (D:xmlbeans>scomp -allowmdef "urn:oasis:names:tc:evs:schema:eml" EML-v5-0-schemas-060629*.xsd) then I get one more error:
 
440-460-include-v5-0.xsd:42:15: error: src-element.2.2: Element reference cannot also specify <complexType>
 
This is a genuine error: if you look in that file at the line number indicated and correlate that with src-element.2.2 section in the Schema spec, you will see that the Schema is incorrect.
 
On the other hand, if I compile just a subset of the files:
 
scomp EML-v5-0-schemas-060629EML*.xsd
 
then it succeeds and I get a jar of about 2.3M.
 
So that set of Schemas is a little problematic, but it can be made to work (with that one exception, which is an error in the Schema file). In no case do I get "success" reported but an empty jar...
 
Radu


From: beansxmlebusiness.com [mailto:beansxmlebusiness.com]
Sent: Friday, June 08, 2007 4:45 PM
To: userxmlbeans.apache.org
Subject: Can XMLBeans work with OASIS EML xsd ?

I've been trying to use XMLBeans with the schemas here:
&nbsp;
&nbsp;
Specifically the EML410 -> 410-ballots-v5-0.xsd
 
What happens is the XMLBeans processes it - but when you inspect the JAR file there is no transform methods in factory-its all just empty.
 
I suspect that XMLBeans does not work with xs:include or xs:import? Or there is an error it is not reporting and its just creating an empty set.
&nbsp;
Can anyone else confirm is they can get XMLBeans to work with these schemas?
 
Thanks, DW
&nbsp;
 ;
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribexmlbeans.apache.org For additional commands, e-mail: user-helpxmlbeans.apache.org

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.
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )