URI schema
<?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.java2s.com" xmlns="http://www.java2s.com" elementFormDefault="qualified"> <xs:simpleType name="uri_Scheme"> <xs:restriction base="xs:string"> <xs:enumeration value="ftp" /> <xs:enumeration value="http" /> <xs:enumeration value="mailto" /> <xs:enumeration value="news" /> <xs:enumeration value="telnet" /> <xs:enumeration value="urn" /> </xs:restriction> </xs:simpleType> </xs:schema>