[
https://jira.codehaus.org/browse/JIBX-472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=290533#comment-290533
]
Don Corley commented on JIBX-472:
---------------------------------
Malachi,
The WC3 mathml schema is massive. In my experience, even the best schema
contains errors.
Remember, JiBX is not perfect. It does a great job of processing schema, but
some perfectly valid (and usually obscure) schema definitions can't be
processed.
Here is what I suggest:
The mathml schema is nicely segmented. Try to process each mathml schema
separately. You have already selected the best schema binding tool to use when
you want to segment your code. Take a look at our simple example of a modular
schema binding on a web based schema definition here in our source repository:
https://github.com/jibx/maven-plugin/tree/master/test-suite/simple-web-schema-test
.
Every once in a while you will run into an error. For example, the error that
you list above is JiBX complaining that there is an empty <import> statement in
the schema (which there is at line 20, column 13) NOTE: The line is question
will not be the 20th line is a web browser, you will need to select
display-source in your browser to see the raw xsd file. Why the schema author
didn't just include that line as a comment is anyone's guess.
The solution to this problem is to comment out this line. I would suggest using
an XSLT transformation so you can use it on future schema. A nice example of
XSLT transformation on a web-based schema can be found in our source repository
here:
https://github.com/jibx/schema-library/tree/master/net.webservicex
As a programmer, I'm sure you have had to go through this kind of process a
million times.
I hope this helps!
Don
> Unable to import collada spec
> -----------------------------
>
> Key: JIBX-472
> URL: https://jira.codehaus.org/browse/JIBX-472
> Project: JiBX
> Issue Type: Bug
> Components: CodeGen
> Affects Versions: JiBX 1.2.3
> Reporter: Malachi de AElfweald
> Attachments: collada_errors.txt
>
>
> Tried to run schema gen against
> http://www.khronos.org/files/collada_schema_1_5 [renamed to
> collada_schema_1_5.xsd]
> It came up with some errors (see attachment)
> I looked at the first one:
> FATAL codegen.CodeGen - Either 'namespace' or 'schemaLocation' value required
> for import at (line 20, col 13, in
> http://www.w3.org/Math/XMLSchema/mathml2/common/common-attribs.xsd)
> Which I did not understand since the reference xsd says:
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns="http://www.w3.org/1998/Math/MathML"
> xmlns:xlink="http://www.w3.org/1999/xlink"
> targetNamespace="http://www.w3.org/1998/Math/MathML"
> elementFormDefault="qualified">
> And the line number it is complaining about is:
> </xs:attributeGroup>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs