Greetings,
I use WSDP v1.5 (comprising JAXB Version 1.0.4 ) and try to compile an
application schema that is importing the GML 2.1.2 schema.
It contains the schema attributes and elements :
-------------------------------------------------------------------
xsd:schema xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
targetNamespace="
http://www.opengis.net/examples"
xmlns="
http://www.opengis.net/examples"
xmlns:gml="
http://www.opengis.net/gml"
gml:version="2.1.2"
xmlns:xlink="
http://www.w3.org/1999/xlink"
xmlns:jxb="
http://java.sun.com/xml/ns/jaxb"
jxb:version="1.0">
<xsd:annotation><xsd:appinfo>
<jxb:globalBindings generateIsSetMethod="true"/>
</xsd:appinfo></xsd:annotation>
<!-- import constructs from the GML Feature and Geometry schemas -->
<xsd:import namespace="
http://www.opengis.net/gml"
schemaLocation="feature.xsd"/>
-------------------------------------------------------------------
feature.xsd uses another schema (geometry.xsd) that is placed, locally,
in the same repertory with feature.xsd and the application schema.
[feature.xsd and geometry.xsd are available for consultation :
http://schemas.opengis.net/gml/2.1.2/]
The xjc compiling fails with :
-------------------------------------------------------------------
[xjc] Compiling
file:/C:/JAXB/jaxb/samples/casino/casino_test_2/city.xsd
[xjc] [ERROR] rcase-RecurseLax.2: There is not a complete
functional mapping between the particles.
[xjc] line 297 of geometry.xsd
[xjc] [ERROR] derivation-ok-restriction.5.4.2: Error for type
'MultiPolygonType'. The particle of the type is not a valid restriction
of the particle of the base.
[xjc] line 297 of geometry.xsd
[xjc] [ERROR] rcase-RecurseLax.2: There is not a complete
functional mapping between the particles.
[xjc] line 280 of geometry.xsd
[xjc] [ERROR] derivation-ok-restriction.5.4.2: Error for type
'MultiLineSt
ringType'. The particle of the type is not a valid restriction of the
particle
of the base.
[xjc] line 280 of geometry.xsd
[xjc] [ERROR] rcase-RecurseLax.2: There is not a complete
functional mapping between the particles.
[xjc] line 263 of geometry.xsd
[xjc] [ERROR] derivation-ok-restriction.5.4.2: Error for type
'MultiPointType'. The particle of the type is not a valid restriction
of the particle of the base.
[xjc] line 263 of geometry.xsd
[xjc] failure in the XJC task. Use the Ant -verbose switch for
more details
BUILD FAILED
-------------------------------------------------------------------
My build.xml file is construct from JAXB sample ‘element-substitution’.
An extract of this file :
-------------------------------------------------------------------
<xjc schema="city.xsd" package="org.example" target="gen-src">
<arg value="-extension" />
<produces dir="gen-src/org.example" includes="**/*.java" />
</xjc>
-------------------------------------------------------------------
Where have I gone wrong ? Do you have an idea ?
Thanks.