W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2000

restrictions with nested simpleTypes.

From: Jason Diamond <jason@injektilo.org>
Date: Sun, 10 Dec 2000 18:58:42 -0800
To: <xmlschema-dev@w3.org>
Message-ID: <LAEMKGDBDFAKFNKPFEKLKEBOCPAA.jason@injektilo.org>
I don't understand why the base attribute isn't good enough. Why would you
ever do this?

<xsd:simpleType name="fooType">
  <xsd:restriction>
    <xsd:simpleType>
      <xsd:restriction base="xsd:string">
        <!-- ... -->
      </xsd:restriction>
    </xsd:simpleType>
    <!-- ... -->
  </xsd:restriction>
</xsd:simpleType>

Thanks,
Jason.
Received on Sunday, 10 December 2000 22:02:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:19 GMT