On Tue, 2006-03-07 at 10:09 -0600, Scott M Stark wrote:
> Then I don't see the point of the SchemaBindingInitializer. An XSD is
> simply mapped to a SchemaBinding via the XsdBinder class, what I want is
> to bypass the XSD and just tell the binding layer here is how to handle
> the urn:jboss:simplejavabean:1.0 namespace elements.
> 

They are two different issues. 
The XSD describes the model, the schemabinding initializer
binds handlers to the model.

If you want to do everything yourself, you would need to do
new SchemaBinding() and populate the whole thing yourself
(elements, types, modelgroups, wildcards, etc.)
then register it against the namespace.

Alex has a cache of uri -> schemabinding somewhere that could
be populated directly I guess?

> > -----Original Message-----
> > From: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED] On 
> > Behalf Of Alexey Loubyansky
> > Sent: Tuesday, March 07, 2006 7:50 AM
> > To: jboss-development@lists.sourceforge.net
> > Subject: Re: [JBoss-dev] minOccurs=0 not being used
> > 
> > There must be a resolvable XSD for urn:jboss:simplejavabean:1.0.
> > 
> > Scott M Stark wrote:
> > > 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.
> 
> 
> -------------------------------------------------------
> 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
> JBoss-Development@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jboss-development
-- 
xxxxxxxxxxxxxxxxxxxxxxxx
Adrian Brock
Chief Scientist
JBoss Inc.
xxxxxxxxxxxxxxxxxxxxxxxx



-------------------------------------------------------
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
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to