Domanda

<xs:attribute name="genre">

    <xs:simpleType>
        <xs:restriction base="xs:string">
            <xs:enumeration value="sci/fi"/>
        </xs:restriction>
    </xs:simpleType>

</xs:attribute>

Is sci/fi a valid string value? if not, how do i represent the fraction slash (/) ?

Thank you

È stato utile?

Soluzione

/ is not a special character in xml. the characters < > & " ' are the only special characters. Hence sci/fi is a valid string.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top