users@jaxb.java.net

Re: [ERROR] Property "Alt" is already defined. Use <jaxb:property> to resolve this conflict.

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Tue, 5 May 2009 22:36:34 +0200

Hi,

> I am trying to compile a schema from the OASIS document format DITA that can
> be found here:
> http://docs.oasis-open.org/dita/v1.1/CS01/schema/ditaschema.zip
>
> Unfortunately, I get an error even if I use the simple binding mode
> described here:
> http://weblogs.java.net/blog/kohsuke/archive/2006/03/simple_and_bett.html
>
> C:\JAXB\jaxb-ri-20090206\bin>xjc -extension simpleMode.xsd
> c:\JAXB\ditaschema\topic.xsd
> parsing a schema...
> [ERROR] Property "Alt" is already defined. Use &lt;jaxb:property> to resolve
> this conflict.
>  line 28 of file:/C:/JAXB/ditaschema/commonElementGrp.xsd
>
> [ERROR] The following location is relevant to the above error
>  line 1566 of file:/C:/JAXB/ditaschema/commonElementMod.xsd
>
> Failed to parse a schema.

[...]

> Is there anything else I can do to compile the schema?

Why don't you use jaxb:property to resolve the conflict just as XJC suggests?

Bye.
/lexi