枚举限制:假设 Schema的名字空间前缀为“xsd”,现在需要定义名为“musicType”的简单类型,要求取值为“古典”、“流行”、“民族”三个字符串的其中之一,下面正确的选项是( )。
A、 <xsd:simpletype name="musicType"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="古典"> <xsd:enumeration value="流行"> <xsd:enumeration value="民族"> </xsd:enumeration> </xsd:enumeration> </xsd:enumeration> </xsd:restriction> </xsd:simpletype>
B、 <xsd:simpletype name="musicType"> <xsd:restriction base="xsd:enumeration"> <xsd:enumeration value="古典"> <xsd:enumeration value="流行"> <xsd:enumeration value="民族"> </xsd:enumeration></xsd:enumeration></xsd:enumeration></xsd:restriction> </xsd:simpletype>
C、 <xsd:simpletype name="musicType"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="古典"> <xsd:enumeration value="流行"> <xsd:enumeration value="民族"> </xsd:enumeration></xsd:enumeration></xsd:enumeration></xsd:restriction> </xsd:simpletype>
D、 <xsd:simpletype name="musicType"> <xsd:restriction base="xsd:string"> <xsd:string value="古典"> <xsd:string value="流行"> <xsd:string value="民族"> </xsd:string></xsd:string></xsd:string></xsd:restriction> </xsd:simpletype>