regarding to these errors:
phu_at_phu-mac:~/programming/SensorML_examples/SensorMLV1.0/sweCommon/1.0.0
$ xjc.sh positionTypes.xsd
parsing a schema...
compiling a schema...
[ERROR] Two declarations cause a collision in the ObjectFactory class.
line 1462 of
http://schemas.opengis.net/gml/3.1.1/base/geometryPrimitives.xsd
Failed to produce code.
phu_at_phu-mac:~/programming/SensorML_examples/SensorMLV1.0/sweCommon/1.0.0
$
I have a few questions and hope someone can ask some of them.
1. what do "Two declarations cause a collision in the ObjectFactory
class" and "(Related to above error) This is the other declaration." mean?
2. do they really mean name collision with XML elements? I suspect these
errors occur whenever there is a substitutionGroup, like
<element name="_Solid" type="gml:AbstractSolidType" abstract="true"
substitutionGroup="gml:_GeometricPrimitive">
Comments about the error from SensorML community:
I believe these are related to JAXB getting confused be declarations of
XML elements whose name differs only by lexical case. XML names are
case-sensitive (this is specifically stated in the *XML* spec from W3C).
You have to configure your data binding environment to respect this.