You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Hildegunde Weinzierl <Hi...@esg.de> on 2009/05/25 10:56:22 UTC

How can I get the annotation of a choice?

Hi,

how can I get the annotation of a choice?

Example:

<xsd:choice minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:appinfo>
...                                     <- this annotation I want to get!
</xsd:appinfo>
</xsd:annotation>
<xsd:element name="element1" minOccurs="1" maxOccurs="1">
<xsd:annotation>
<xsd:appinfo>
...
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
...
</xsd:choice>

Best regards

Hildegunde Weinzierl

Re: How can I get the annotation of a choice?

Posted by Radu Preotiuc <ra...@oracle.com>.
Schema annotations on <choice>, (<sequence> and <all>) is not
implemented.

Schema annotations on the <extension> and <restriction> elements are not
supposed to be accessible as far as I understand the specification,
because annotations are accessed via the component, and there is no
"extension" or "restriction" component in Schemas. One could sort of
merge them with the annotation of the type, but again I don't see any
hint in the specification that that's what's expected.

Radu

On Mon, 2009-05-25 at 10:56 +0200, Hildegunde Weinzierl wrote:
> 
> Hi, 
> 
> how can I get the annotation of a choice? 
> 
> Example: 
> 
> <xsd:choice minOccurs="0" maxOccurs="1"> 
> <xsd:annotation> 
> <xsd:appinfo> 
> ...                                        <- this annotation I want
> to get! 
> </xsd:appinfo> 
> </xsd:annotation> 
> <xsd:element name="element1" minOccurs="1" maxOccurs="1"> 
> <xsd:annotation> 
> <xsd:appinfo> 
> ... 
> </xsd:appinfo> 
> </xsd:annotation> 
> </xsd:element> 
> ... 
> </xsd:choice> 
> 
> Best regards
> 
> Hildegunde Weinzierl 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org