annotation of enumerations

Aug 24, 2010 at 1:48 PM

I tried to annotate an enumeration like this:

<xs:simpleType name="PartnerFunctionID">
        <xs:restriction base="xs:string">
            <xs:enumeration value="AG">
                <xs:annotation>
                    <xs:documentation>some documentation</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="Q1">
                <xs:annotation>
                    <xs:documentation>some other documentation</xs:documentation>
                </xs:annotation>
            </xs:enumeration>            
        </xs:restriction>
    </xs:simpleType>

The result is only this:

[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "2.0.50727.4016")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="xxx")]
    public enum PartnerFunctionID {
        
        /// <remarks/>
        AG,
        
        /// <remarks/>
        Q1
    }

It works if I annotate an element so I guess this just has not been implemented. It would be a nice feature though. If I'm doing it wrong, please correct me.

regards and thanks in advance, E.