xmlbeans-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edward Frederick <epfreder...@gmail.com>
Subject Extracting annotations from actual enumeration values, as opposed to the enumeration type.
Date Tue, 07 Feb 2006 16:48:49 GMT
Hello,

Is it possible to extract annotations from the actual enumeration
values? I've had a lot of luck with annotations so far, but this one
is a real stumper. Since enumerations are just facets on the base
string, is there even a annotated schematype for which to retrieve the
annotations?

Thanks,

Ed


e.g.

..snip...
<xs:element name="my-enum">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="val1">
              <xs:annotation>
                <xs:appinfo>
                  <myns:myelement>annotation1</myns:myelement>
                </xs:appinfo>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="val2">
              <xs:annotation>
                <xs:appinfo>
                  <myns:myelement>annotation2</myns:myelement>
                </xs:appinfo>
              </xs:annotation>
            </xs:enumeration>
            </xs:restriction>
        </xs:simpleType>
</xs:element>

..snip...

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


Mime
View raw message