highsource / jsonix

Powerful XML<->JSON JavaScript mapping library.
BSD 2-Clause "Simplified" License
356 stars 75 forks source link

Generating mapping error #224

Open al-anatrini opened 4 years ago

al-anatrini commented 4 years ago

Hello,

I’m making some test generating the js mapping with the command line tool. Although it works smoothly, when I try to generate the mappings for a .musicxml document I’m getting the error messages you see below. This seems to happen only with musicxml documents despite the fact I’m using the official musicxml.xsd document. Would you have please any suggestion concerning the origin of this error? I attach the .xjb and .xsd files I'm using for this.

Best regards.

java -jar jsonix-schema-compiler-full.jar -d /Users/alan/Documents/progStuff/jsonix-master/demos/debussyDemo/src/main/webapp/js /Users/alan/Documents/progStuff/jsonix-master/demos/debussyDemo/src/main/resources/musicxml.xsd -b /Users/alan/Documents/progStuff/jsonix-master/demos/debussyDemo/src/main/resources/bindings.xjb

resources.zip resources.zip

[WARNING] schema_reference.4: Failed to read schema document 'http://www.musicxml.org/xsd/xml.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not . line 24 of file:/Users/alan/Documents/progStuff/jsonix-master/demos/debussyDemo/src/main/resources/musicxml.xsd

[WARNING] schema_reference.4: Failed to read schema document 'http://www.musicxml.org/xsd/xlink.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not . line 25 of file:/Users/alan/Documents/progStuff/jsonix-master/demos/debussyDemo/src/main/resources/musicxml.xsd

[ERROR] src-resolve: Cannot resolve the name 'xml:lang' to a(n) 'attribute declaration' component. line 2092 of file:/Users/alan/Documents/progStuff/jsonix-master/demos/debussyDemo/src/main/resources/musicxml.xsd

[ERROR] src-resolve: Cannot resolve the name 'xlink:href' to a(n) 'attribute declaration' component. line 2210 of file:/Users/alan/Documents/progStuff/jsonix-master/demos/debussyDemo/src/main/resources/musicxml.xsd

[ERROR] org.hisrc.jsonix.execution.JsonixInvoker - The model is null, there was probably a problem parsing schemas.