OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Schema issue with enumerated element content

[ Lists Home | Date Index | Thread Index ]

I am trying to define an element that does two things:
1 - Provides an enumerated list of valid text content items, allowing multiple items
2 - Provides an attribute.
So far, I have the following, which satisfies #1, but I can't figure out how to add an attribute. Any ideas?
Thanks in advance,
<xs:element name="ElemName">
      <xs:restriction base="xs:anyType">
              <xs:restriction base="xs:string">
                <xs:enumeration value="Value1"></xs:enumeration>
                <xs:enumeration value="Value2"></xs:enumeration>
                <xs:enumeration value="Value3"></xs:enumeration>
                <xs:enumeration value="Value4"></xs:enumeration>
I'd like to create a valid element in the XML such as:
<ElemName attr="value">Value1 Value2</ElemName>


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS