[Home] [By Thread] [By Date] [Recent Entries]

  • To: <xml-dev@l...>
  • Subject: Is it correct schema definition?
  • From: "Li Yuejiong(John)" <john_li@m...>
  • Date: Mon, 5 Dec 2005 22:26:11 +0800
  • Thread-index: AcX5eR9Al9Z4K/ffSmCEcOv48j5t9AAK0xdw
  • Thread-topic: Is it correct schema definition?

 Hi,

The following piece of schema is from a released Schema definition.The
problem is the attribute "fixed". In the element definition, fixed="" is
correct or not?

  <complexType name="countryItemType">
    <simpleContent>
      <restriction base="stringItemType">
        <length value="0" fixed="true" />
      </restriction>
    </simpleContent>
  </complexType>

  <element id="id_Afghanistan" name="Afghanistan" type="countryItemType"
substitutionGroup="CountryItemHead" fixed="" nillable="true" />

Thanks,
John

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member