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@[]>
To: www-xml-schema-comments@w3.org
Dear XML Schema editor,

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"
        <shipTo country="US">
                <name>Alice Smith</name>
                <street>123 Maple Street</street>
                <!-- etc -->
        <billTo country="US">
                <name>Robert Smith</name>
                <street>8 Oak Avenue</street>
                <!-- etc -->
        <apo:comment>Hurry, my lawn is going wild!</apo:comment>
        <!-- etc -->

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


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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:08:50 UTC