So I'm not understanding what triggers a SchemaBindingInitializer to be
loaded. For a configuration of a marshaller such as the following:
DefaultSchemaResolver resolver = new DefaultSchemaResolver();
JavaBeanSchemaInitializer si = new JavaBeanSchemaInitializer();
resolver.addSchemaInitializer("urn:jboss:simplejavabean:1.0", si);
resolver.addSchemaLocation("urn:jboss-test:xmbean:2.0",
"xml/mbeanserver/jboss_xmbean_2_0.xsd");
I'm expecting that both the "urn:jboss-test:xmbean:2.0" and
"urn:jboss:simplejavabean:1.0" namespaces can be handled. The
"urn:jboss:simplejavabean:1.0" has a code centric SchemaBinding while
the "urn:jboss-test:xmbean:2.0" has a SchemaBinding derived from the
jboss_xmbean_2_0.xsd annotations.
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Alexey Loubyansky
> Sent: Tuesday, March 07, 2006 3:28 AM
> To: [email protected]
> Subject: Re: [JBoss-dev] minOccurs=0 not being used
>
> Alexey Loubyansky wrote:
> > In case of strict, all elements must be present in the
> SchemaBinding.
>
> In a SchemaBinding that can be resolved.
>
> > In case of lax, if element binding is found in the
> SchemaBinding then
> > it is used.
>
> The above, of course, implies that the SchemaBinding was
> successfully resolved for the element.
>
> > If not then
> > - if there is unresolvedElementHandler set on the
> WildcardBinding then
> > it will be used to process the element
> > - if unresolvedElementHandler is null then the element will
> be skipped.
> >
> > Scott M Stark wrote:
> >
> >> So how does this:
> >>
> >> <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
> >>
> >> compare to the previous:
> >>
> >> <xs:any minOccurs="0" maxOccurs="unbounded" /> which should be
> >> processContents="strict"?
> >>
> >>
> >>> -----Original Message-----
> >>> From: [EMAIL PROTECTED]
> >>> [mailto:[EMAIL PROTECTED] On
> Behalf Of
> >>> Alexey Loubyansky
> >>> Sent: Monday, March 06, 2006 3:27 AM
> >>> To: [email protected]
> >>> Subject: Re: [JBoss-dev] minOccurs=0 not being used
> >>>
> >>> It's fixed now. Thanks.
> >>>
> >>> Scott M Stark wrote:
> >>>
> >>>> http://jira.jboss.com/jira/browse/JBXB-56 is an issue that
> >>>
> >>>
> >>> describes a
> >>>
> >>>> simple testcase in head that shows this behavior.
> >>>
> >>>
> >>
> >>
> >> -------------------------------------------------------
> >> This SF.Net email is sponsored by xPML, a groundbreaking scripting
> >> language that extends applications into web and mobile
> media. Attend
> >> the live webcast and join the prime developer group breaking into
> >> this new coding territory!
> >> http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
> >> _______________________________________________
> >> JBoss-Development mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/jboss-development
> >>
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> > language that extends applications into web and mobile
> media. Attend
> > the live webcast and join the prime developer group
> breaking into this
> > new coding territory!
> >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=1216
> > 42 _______________________________________________
> > JBoss-Development mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/jboss-development
> >
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking
> scripting language that extends applications into web and
> mobile media. Attend the live webcast and join the prime
> developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&
> dat=121642
> _______________________________________________
> JBoss-Development mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jboss-development
>
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development