users@jaxb.java.net

RE: Re: Specified conversion customization is not used.

From: <mihir.joshi_at_iflexsolutions.com>
Date: Mon, 11 Aug 2003 10:31:58 +0530

The root node has 2 branches. One of the branches is present in the request path(//xs:complexType[@name='ROOTType']/xs:choice/xs:sequence[1]) and the other is present in the response path(//xs:complexType[@name='ROOTType']/xs:choice/xs:sequence[2]). Now, I want to do different code transformations based on whether the request is being handled or the response. What I am trying to do using the external bindings is to specify a transformation for Code_Type when it appears inside the request path and another transformation when it appears inside the response path. Is there any other way to achieve this?

-----Original Message-----
From: Kohsuke Kawaguchi [mailto:Kohsuke.Kawaguchi_at_Sun.COM]
Sent: Friday, August 08, 2003 9:10 PM
To: users_at_jaxb.dev.java.net
Subject: Re: Specified conversion customization is not used.



It seems to me that you might be misunderstanding how the XPath is
working. Your binding says you are adding two identical customizations
to the same node (namely, "Code_Type" simple type.)

And why you are specifying the following outer @node, when your inner
@node ignores this completely?

  <jxb:bindings node="//xs:complexType[@name='ROOTType']/xs:choice/xs:se
  quence[1]/xs:sequence">



Since one of them is redundant, that's why you are getting "unused
conversion customization"

Try "-mode forest" compiler option to see how your external
customizations are internalized.

regards,
--
Kohsuke Kawaguchi                  408-276-7063 (x17063)
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net
DISCLAIMER:
This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net