users@jaxb.java.net

Re: Schema collides

From: Wolfgang Laun <wolfgang.laun_at_gmail.com>
Date: Fri, 11 Jun 2010 10:30:43 +0200

$ xjc urn.oma.xml.poc.list.service.xsd
parsing a schema...
compiling a schema...
ietf/params/xml/ns/resource_lists/DisplayNameType.java
ietf/params/xml/ns/resource_lists/EntryRefType.java
ietf/params/xml/ns/resource_lists/EntryType.java
ietf/params/xml/ns/resource_lists/ExternalType.java
ietf/params/xml/ns/resource_lists/ListType.java
ietf/params/xml/ns/resource_lists/ObjectFactory.java
ietf/params/xml/ns/resource_lists/ResourceLists.java
ietf/params/xml/ns/resource_lists/package-info.java
oma/xml/poc/list_service/EmptyType.java
oma/xml/poc/list_service/Group.java
oma/xml/poc/list_service/ListServiceType.java
oma/xml/poc/list_service/ListType.java
oma/xml/poc/list_service/ObjectFactory.java
oma/xml/poc/list_service/package-info.java
ietf/params/xml/ns/common_policy/ConditionsType.java
ietf/params/xml/ns/common_policy/ExceptType.java
ietf/params/xml/ns/common_policy/ExtensibleType.java
ietf/params/xml/ns/common_policy/IdentityType.java
ietf/params/xml/ns/common_policy/ManyType.java
ietf/params/xml/ns/common_policy/ObjectFactory.java
ietf/params/xml/ns/common_policy/OneType.java
ietf/params/xml/ns/common_policy/RuleType.java
ietf/params/xml/ns/common_policy/Ruleset.java
ietf/params/xml/ns/common_policy/SphereType.java
ietf/params/xml/ns/common_policy/ValidityType.java
ietf/params/xml/ns/common_policy/package-info.java
$

On 11 June 2010 09:58, Lulseged Zerfu <lulseged.zerfu_at_ericsson.com> wrote:

> Hi
> urn.ietf.params.xml.ns.resource.lists.xsd declares list-type
> urn.oma.xml.poc.list.service.xsd declares list-type
>
> I get error when I compile these schemas. Because they declare same type in
> both schemas.
>
> Lulseged
>
> ------------------------------
> *From:* Lulseged Zerfu [mailto:lulseged.zerfu_at_ericsson.com]
> *Sent:* den 11 juni 2010 09:55
>
> *To:* users_at_jaxb.dev.java.net
> *Subject:* RE: Schema collides
>
> Hi
>
> Were you able to compile these schemas?
>
> Lulseged
>
> ------------------------------
> *From:* Wolfgang Laun [mailto:wolfgang.laun_at_gmail.com]
> *Sent:* den 11 juni 2010 09:53
> *To:* users_at_jaxb.dev.java.net
> *Subject:* Re: Schema collides
>
> On 11 June 2010 09:29, Lulseged Zerfu <lulseged.zerfu_at_ericsson.com>wrote:
>
>> I am using IETF and OMA(Open Mobile Alliance) schemas to build up my
>> applications. Unfortunately, this two bodies declare same type in their
>> schemas.
>>
>
> No they don't: urn.oma.xml.poc.list.service.xsd *imports*urn.ietf.params.xml.ns.resource.lists.xsd (and
> urn:ietf:params:xml:ns:common-policy), fetching the .xsd's from the net.
> Just forget your local copy of urn.ietf.params.xml.ns.resource.lists.xsd and
> just xjc compile urn.oma.xml.poc.list.service.xsd.
>
> -W
>
>