W3C home > Mailing lists > Public > xml-editor@w3.org > July to September 2000

XML 1.0 Spec & Schemas

From: <Peter_Lenahan@ibi.com>
Date: Tue, 19 Sep 2000 11:49:30 -0400
Message-Id: <0009199693.AA969378071@tcpgate.ibi.com>
To: <xml-editor@w3.org>
   I was looking in the Spec and was unclear on an issue.
   
   In the 1.0 Spec you allowed a DTD to be included in the XML document.
   
   I was unsure if the spec would allow a schema to included in the same method.
   
   Is this under consideration? Should you include this in the errata?
   
   Peter Lenahan
   pjl@ibi.com
   
   ---------------------------SAMPLE--------------------------------------
   
   <?xml version="1.0"?>
   <!DOCTYPE hello [
      <w3c:schema xmlns:w3c="http://www.w3c.org/1999/XMLSchema" 
        elementFormDefault="unqualified"
        attributeFormDefault="unqualified">
   
         <w3c:complexType       name="myelements">
            <w3c:attribute  name="myattribute"      type="w3c:date"/>
            <w3c:element    name="num1"             type="w3c:positiveInteger"/>
            <w3c:element    name="num2"             type="w3c:positiveInteger"/>
         </w3c:complexType>
   
      </w3c:schema>
   ]>
   
   <myelements myattribute="2000-01-31">
        <num1> 100 </num1>
        <num2> 200 </num2>
   </myelements>
   ---------------------------SAMPLE--------------------------------------
Received on Tuesday, 19 September 2000 11:44:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:31 GMT