I'm trying out various things and in particular the 'enableJavaNamingConvention' feature.
The .xsd contains:
<xsd:appinfo>
<jxb:globalBindings
enableJavaNamingConventions="true"
fixedAttributeAsConstantProperty="true"
collectionType="java.util.Vector"
typesafeEnumBase="xsd:NCName"
choiceContentProperty="false"
typesafeEnumMemberName="generateError"
modelGroupAsClass="false"
enableFailFastCheck="false"
generateIsSetMethod="false"
underscoreBinding="asCharInWord"/>
<jxb:schemaBindings>
<jxb:package name="primer.myPo"/>
<jxb:nameXmlTransform>
<jxb:elementName/>
</jxb:nameXmlTransform>
</jxb:schemaBindings>
</xsd:appinfo>
The build yields:
C:\jaxb-1.0-beta\examples\users-guide\SampleApp6>ant -emacs
Buildfile: build.xml
compile:
Compiling the schema...
Compiling file:/C:/jaxb-1.0-beta/examples/users-guide/SampleApp6/po.xsd
unexpected attribute "enableJavaNamingConventions"
line 54 of po.xsd
tag name "jxb:typesafeEnumMember" is not allowed. Possible tag names are: <class>,<globalBindings>,<javaType>,<property>,<schemaBindings>,<typesafeEnumClass>, and more line 195 of po.xsd
BUILD FAILED
file:C:/jaxb-1.0-beta/examples/users-guide/SampleApp6/build.xml:24: unable to parse the schema. Error messages should have been provided
Anyone have any ideas? Using JAXB Final 1.0. (Had the same result on the beta.)
David Halonen
Compuware