users@jaxb.java.net

Re: Binding file with no schema location

From: Benson Margulies <bimargulies_at_gmail.com>
Date: Fri, 27 Mar 2009 06:56:12 -0400

Have you looked at the source I referenced below? In the case of a global
binding in a separate file, the code will go hunting for schema elements to
customize INSIDE of the binding element. That doesn't seem right to me.



On Fri, Mar 27, 2009 at 12:27 AM, Rama Pulavarthi
<Rama.Pulavarthi_at_sun.com>wrote:

> Benson Margulies wrote:
>
>> Consider a binding file with no schemaLocation attribute.
>>
>> com.sun.tools.xjc.reader.internalizer.Internalizer.buildTargetNodeMap(Element,
>> Node, Target, Map<Element, Node>, SCDBasedBindingSet)
>>
>> will apply the xpath to the binding file itself (the 'inherited target').
>> Should it not apply it to each of the schemas known to the compilation,
>> instead?
>>
>>
>> AFAIK, you can only specify <jaxb:globalBindings> without schemaLocation.
>
> thanks,
> Rama Pulavarthi
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>