W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2000

Part 0 - Clause 3.1

From: Michael McCaleb <mccaleb@eeel.nist.gov>
Date: Fri, 15 Dec 2000 17:05:48 -0500
Message-Id: <v02130504b66045e5a583@[129.6.185.17]>
To: www-xml-schema-comments@w3.org
Dear XML Schema editor,

Comment:
In Clause 3.1 of Part 0 the instance document "A Purchase Order with
Unqualified Locals, po1.xml" does not quite agree with the schema "Purchase
Order Schema with Target Namespace, po1.xsd".

The instance document (shown below) has an orderDate attribute in the
purchaseOrder element and a country attribute in the shipTo and billTo
elements. However, The schema "po1.xsd" does not mention these attributes.
Note: the "<!-- etc -->" comment is within the sequence start and end-tags
so is not applicable to the attributes.

<?xml version="1.0"?>
<apo:purchaseOrder xmlns:apo="http://www.example.com/PO1"
                                    orderDate="1999-10-20">
        <shipTo country="US">
                <name>Alice Smith</name>
                <street>123 Maple Street</street>
                <!-- etc -->
        </shipTo>
        <billTo country="US">
                <name>Robert Smith</name>
                <street>8 Oak Avenue</street>
                <!-- etc -->
        </billTo>
        <apo:comment>Hurry, my lawn is going wild!</apo:comment>
        <!-- etc -->
</apo:purchaseOrder>

Proposed solution:
Either add the attribute declarations to schema po1.xsd or add
"<!-- etc -->" comments to schema po1.xsd to account for the attributes.



Sincerely,

Mike McCaleb
Received on Friday, 15 December 2000 17:04:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:12:49 GMT