You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlbeans-dev@xml.apache.org by Radu Preotiuc-Pietro <ra...@bea.com> on 2004/03/07 00:55:54 UTC

JAXB vs JAX-RPC conventions for Schema name to Java name

Hi all,
I was reviewing the "Mapping of XML Names" section of both these specs and noticed that they are contradictory and moreover JAX-RPC seems to be broken in this area, since the examples of conversion from XML Name to Java Name that they give do not match the conversion rules.
In particular, the handling of class or method names which contain (in XML) the '_' character is different.
XMLBeans v1 uses the JAXB conventions. Two questions arise:
1. Should XMLBeans v2 "lossy" model (which implements jaxb) and "non-lossy" model (similar to XmlBeans v1) share the same naming conversion rules?
2. If yes, should these rules be the JAXB rules (which make more sense) or the JAX-RPC rules?

Thanks,
Radu

- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


Re: JAXB vs JAX-RPC conventions for Schema name to Java name

Posted by Dutta Satadip <s-...@sbcglobal.net>.
I agree with Scott, It seems that using the JAXB rules by default with an alternative for JAX-RPC conventions would be the way to go.
Dutta:)


Scott Ziegler <zi...@bea.com> wrote:
I think we should use the more sensible JAXB rules as default, but
provide an option for a strict interpretation of JAX-RPC's naming
rules. Also I just want to clarify that the lossy model is not a JAXB
impl but rather something similiar in philosophy.

--Scott

On Sat, 2004-03-06 at 15:55, Radu Preotiuc-Pietro wrote:
> Hi all,
> I was reviewing the "Mapping of XML Names" section of both these specs and noticed that they are contradictory and moreover JAX-RPC seems to be broken in this area, since the examples of conversion from XML Name to Java Name that they give do not match the conversion rules.
> In particular, the handling of class or method names which contain (in XML) the '_' character is different.
> XMLBeans v1 uses the JAXB conventions. Two questions arise:
> 1. Should XMLBeans v2 "lossy" model (which implements jaxb) and "non-lossy" model (similar to XmlBeans v1) share the same naming conversion rules?
> 2. If yes, should these rules be the JAXB rules (which make more sense) or the JAX-RPC rules?
> 
> Thanks,
> Radu
> 
> - ---------------------------------------------------------------------
> To unsubscribe, e-mail: xmlbeans-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
> Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/
> 

- ---------------------------------------------------------------------
To unsubscribe, e-mail: xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/

Re: JAXB vs JAX-RPC conventions for Schema name to Java name

Posted by Dutta Satadip <s-...@sbcglobal.net>.
I agree with Scott, It seems that using the JAXB rules by default with an alternative for JAX-RPC conventions would be the way to go.
Dutta:)


Scott Ziegler <zi...@bea.com> wrote:
I think we should use the more sensible JAXB rules as default, but
provide an option for a strict interpretation of JAX-RPC's naming
rules. Also I just want to clarify that the lossy model is not a JAXB
impl but rather something similiar in philosophy.

--Scott

On Sat, 2004-03-06 at 15:55, Radu Preotiuc-Pietro wrote:
> Hi all,
> I was reviewing the "Mapping of XML Names" section of both these specs and noticed that they are contradictory and moreover JAX-RPC seems to be broken in this area, since the examples of conversion from XML Name to Java Name that they give do not match the conversion rules.
> In particular, the handling of class or method names which contain (in XML) the '_' character is different.
> XMLBeans v1 uses the JAXB conventions. Two questions arise:
> 1. Should XMLBeans v2 "lossy" model (which implements jaxb) and "non-lossy" model (similar to XmlBeans v1) share the same naming conversion rules?
> 2. If yes, should these rules be the JAXB rules (which make more sense) or the JAX-RPC rules?
> 
> Thanks,
> Radu
> 
> - ---------------------------------------------------------------------
> To unsubscribe, e-mail: xmlbeans-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
> Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/
> 

- ---------------------------------------------------------------------
To unsubscribe, e-mail: xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/

Re: JAXB vs JAX-RPC conventions for Schema name to Java name

Posted by Scott Ziegler <zi...@bea.com>.
I think we should use the more sensible JAXB rules as default, but
provide an option for a strict interpretation of JAX-RPC's naming
rules.  Also I just want to clarify that the lossy model is not a JAXB
impl but rather something similiar in philosophy.

--Scott

On Sat, 2004-03-06 at 15:55, Radu Preotiuc-Pietro wrote:
> Hi all,
> I was reviewing the "Mapping of XML Names" section of both these specs and noticed that they are contradictory and moreover JAX-RPC seems to be broken in this area, since the examples of conversion from XML Name to Java Name that they give do not match the conversion rules.
> In particular, the handling of class or method names which contain (in XML) the '_' character is different.
> XMLBeans v1 uses the JAXB conventions. Two questions arise:
> 1. Should XMLBeans v2 "lossy" model (which implements jaxb) and "non-lossy" model (similar to XmlBeans v1) share the same naming conversion rules?
> 2. If yes, should these rules be the JAXB rules (which make more sense) or the JAX-RPC rules?
> 
> Thanks,
> Radu
> 
> - ---------------------------------------------------------------------
> To unsubscribe, e-mail:   xmlbeans-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
> Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/
> 

- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


Re: JAXB vs JAX-RPC conventions for Schema name to Java name

Posted by Scott Ziegler <zi...@bea.com>.
I think we should use the more sensible JAXB rules as default, but
provide an option for a strict interpretation of JAX-RPC's naming
rules.  Also I just want to clarify that the lossy model is not a JAXB
impl but rather something similiar in philosophy.

--Scott

On Sat, 2004-03-06 at 15:55, Radu Preotiuc-Pietro wrote:
> Hi all,
> I was reviewing the "Mapping of XML Names" section of both these specs and noticed that they are contradictory and moreover JAX-RPC seems to be broken in this area, since the examples of conversion from XML Name to Java Name that they give do not match the conversion rules.
> In particular, the handling of class or method names which contain (in XML) the '_' character is different.
> XMLBeans v1 uses the JAXB conventions. Two questions arise:
> 1. Should XMLBeans v2 "lossy" model (which implements jaxb) and "non-lossy" model (similar to XmlBeans v1) share the same naming conversion rules?
> 2. If yes, should these rules be the JAXB rules (which make more sense) or the JAX-RPC rules?
> 
> Thanks,
> Radu
> 
> - ---------------------------------------------------------------------
> To unsubscribe, e-mail:   xmlbeans-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
> Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/
> 

- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/