users@jaxb.java.net

Re: XJC custom extensions

From: Glen Mazza <glen.mazza_at_gmail.com>
Date: Tue, 10 Aug 2010 10:07:31 -0400

https://jaxb.dev.java.net/nonav/2.2.1/docs/vendorCustomizations.html ,
third bulleted item from the top. You need that if you're using an
extension beyond that defined by the JAXB spec. (The JAXB RI itself has
a few extensions of its own, shown in the link above.)

HTH,
Glen

Young Matthew (4004) wrote:
> Using lastest jaxb on Java 1.5
>
> The
> http://valdotech.blogspot.com/2010/01/jaxb-superclass-plugin.html blog
> post does a decent job of explaning how to fetch custom appinfo
> definitions but doesn't handle when or why to add a handle
> (localName/prefix) to the jaxb:extensionBindingPrefixes clause in the
> schema declaration? For example,
>
> <xs:schema ...... xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" ....
> jaxb:extensionBindingPrefix="myext....">
> ....
> <xs:appinfo>
> <myext:whatever attribute="...."/>
> </xs:appinfo>
> </xs:schema>
>
> It looks like from the code packaged within JAXB and the example from
> the blog that CustomizationUtils is used in both cases (prefix added
> into the extensionBindingPrefix and not)? What is the purpose of the
> extensionBindingPrefix? Seems like there are very few appinfo
> examples online shows what the use cases are? Any good doc links
> would be great....
>
>
> / matthew