W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2001

Re: does this valid in xml schema?

From: Bob Schloss <rschloss@us.ibm.com>
Date: Wed, 22 Aug 2001 11:27:58 -0400
To: liying <lsui@cs.ucsd.edu>
Cc: xmlschema-dev@w3.org
Message-ID: <OFD81A4E72.C0956AB7-ON85256AB0.00545326@pok.ibm.com>

1) You should be using
which corresponds to the W3C XML Schema Recommendation
issued on May 2, 2001.  (Assuming any editors or validators
which you are using that read the schema understand the new
Rec.  Many of them do).

2) What you are trying to do is legal, but your syntax is incorrect.
The <choice> and <sequence> need namespace prefixing,
so they should appear as <xsd:choice> and <xsd:sequence>
(and the same for their end tags).

Reminder: If you are not sure if a schema is legal, you
can use the Web version of XSV or the downloadable
XML Schema Quality Checker tool from IBM alphaWorks
to check schemas.  Both give messages explaining errors.
You can find links to them at http://www.w3.org/XML/Schema
under Tools.

Note to all readers of the list: XML Schema Quality Checker
has been refreshed with version 1.2 this week.  This version
includes complete checking of the xpath's given in identity-definition
constraints against the structures shown by the complexTypes
in your schema, as well as a lot of small improvements.
Feedback most welcome at all times.


Bob Schloss
Next Gen Web group
IBM T. J. Watson Research Center
Yorktown Heights, New York, USA

liying <lsui@cs.ucsd.edu>@w3.org on 07/13/2001 08:30:51 AM

Sent by:  xmlschema-dev-request@w3.org

To:   xmlschema-dev@w3.org
Subject:  does this valid in xml schema?

I have a question
I don't know whether or not this is a valid xml schema

thanks for help me

<xsd:schema xmlns:xsd="http://www.w3.org/1999/XMLSchema">

                    <xsd:element     name="shipOrder" type="order"/>

                    <xsd:complexType name="order">
                           <xsd:element   name="shipTo"
                           <xsd:element   name="items"
                            <xsd:element   name="mailfrom"
                           <xsd:element   name="items"

         ......definition of shipAddress and cdItems


In short, my question is can those two item element appears as this way
under a big choice but with different definition
Received on Wednesday, 22 August 2001 11:29:14 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:52 UTC