Hello,
has someone been able to bind the docbook 5.0 schemas (xls and rng) to Java?
I have been getting similar errors similar to those gotten by Raul Selas:
1) xsd
The command:
xjc -p docbook docbook.xsd
yields a long list of errors, the first one being:
[ERROR] Property "Role" is already defined. Use <jaxb:property> to resolve
this conflict.
line 7999 of file:/C:/Users/stefano/core/___docbookjava/jaxb/docbook.xsd
2) rng
The command:
xjc –relaxng -p docbook docbook.rng
also yields a long list of errors, the first one being:
[ERROR] Invalid class name "db.bridgehead.renderas.enumeration". Either XJC
has failed to derive a class name from XML name, or invalid name is given.
Use <jaxb:class> customization to override a name.
line 1734 of
file:/C:/Users/stefano/core/___docbookjava/fusesource/library/template/lib/docbook50/rng/docbook.rng
Stefano
The error really means you put the customization to a wrong place. I
think the easiest way out in this case is to use the simple binding
mode. Looking at how DocBook schema is written, I suspect writing the
correct <property> customization would be too much work.
Raul Selas wrote:
> Hello all!!
>
> Im getting an error while trying to bind a XML schema to a Java. The XML
> schema is the DocBook 4.5 XML Schema that you can get in
> http://www.docbook.org/xsd/4.5/
>
> The next is the xjc version im using:
>
> raul_at_sensei:~/docbook/schema/xsd/4.5$ xjc.sh -version
> xjc version "2.1.3-b01-fcs"
> JavaTM Architecture for XML Binding(JAXB) Reference Implementation, (build
> 2.1.3-b01-fcs)
> from package jaxb-ri-20070413
>
> and java -version:
> raul_at_sensei:~/docbook/schema/xsd/4.5$ java -version
> java version "1.6.0"
> Java(TM) SE Runtime Environment (build 1.6.0-b105)
> Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
>
>
--
View this message in context: http://old.nabble.com/What-does-it-means--%22compiler-was-unable-to-honor-this-property-customization.-It-is-attached-to-a-wrong-place%2C-or-its-inconsistent-with-other-bindings.%22-tp10196793p27435811.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.