Elisha Berns schrieb: > Can someone explain why this happens: > > In the ebXML schemas there a lot of annotations in this style: > > <xsd:element ref="cbc:Note" minOccurs="0" maxOccurs="1"> > <xsd:annotation> > <xsd:documentation> > <ccts:Component> > <ccts:ComponentType>BBIE</ccts:ComponentType> > <ccts:DictionaryEntryName>Order. Note. > Text</ccts:DictionaryEntryName> > <ccts:Definition>contains any free form text pertinent > to the entire document or to the document message itself. This element > may contain notes or any other similar information that is not > contained explicitly in another structure.</ccts:Definition> > <ccts:Cardinality>0..1</ccts:Cardinality> > <ccts:ObjectClass>Order</ccts:ObjectClass> > <ccts:PropertyTerm>Note</ccts:PropertyTerm> > <ccts:RepresentationTerm>Text</ccts:RepresentationTerm> > <ccts:DataType>Text. Type</ccts:DataType> > </ccts:Component> > </xsd:documentation> > </xsd:annotation> > </xsd:element> > > This element is part of a sequence particle of a complexType. The > ref'd element type does not have any annotation element, but here an > annotation is added on. In all similar cases the > XSElementDecl::getAnnotation() does not retrieve any XSAnnotation, > even though, as you plainly see, it's right there. > Just FYI, I get the XSElementDecl from the XSParticle. > > So what's the issue here, and what can I do to get the annotation?
Hi Elisha, did you try activating http://apache.org/xml/features/validate-annotations feature? Cheers, Axel -- Humboldt-Universität zu Berlin Institut für Informatik Signalverarbeitung und Mustererkennung Dipl.-Inf. Axel Weiß Rudower Chaussee 25 12489 Berlin-Adlershof +49-30-2093-3050 ** www.freesp.de ** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
