Right. Thanks, Michael! Appreciated.

Michael Glavassevich wrote:
Hi Alex,

Xerces' XML Schema API very closely models the schema components defined by the schema specification. The corresponding schema component for <xsd:element ref="...">...</xsd:element> is a particle [1]. In XML Schema 1.0, particle components [2] do not have an annotation property, so the annotation you specified in the schema document is essentially lost. This is why it doesn't appear in the API.

[1] http://www.w3.org/TR/xmlschema-1/#declare-element
[2] http://www.w3.org/TR/xmlschema-1/#cParticles

Alexey Loubyansky <[EMAIL PROTECTED]> wrote on 06/22/2005 09:29:04 AM:


It seems like their not supported in the current release?

What I am trying to do is to annotate elements that reference global elements like this

<xsd:element ref="mbean:mbean">
  <xsd:annotation>
    <xsd:appinfo>
      <jbxb:class impl="org.jboss.test.xml.mbeanserver.MBeanData"/>
<jbxb:property name="MBeans"

collectionType="java.util.ArrayList"/>

    </xsd:appinfo>
  </xsd:annotation>
</xsd:element>

But these annotations are not seeing using the API. So, I have to move the annotations to the global element declaration. In this specific case


(xml to java binding) it's really an issue.

Reading the JAXB2.0 spec (7.14 Annotation Restrictions) I see that there


is an issue for this submitted to the w3c schema working group that is waiting for resolution.

I would appreciate your opinions on this.

Thanks,

alex


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to