[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Root element

From: Michael Shapiro <michael@creativescience.com>
Date: Tue, 13 Feb 2001 20:20:26 -0800
Message-ID: <011401c096b7$999eb2f0$110a0a0a@voquetter>
To: <xmlschema-dev@w3.org>
root element annotation
I'm learning the schema language and I have a question that I can't find an
answer for.

Primer in http://www.w3.org/TR/xmlschema-0/ declares two elements in
http://www.example.com/PO1 namespace: <purchaseOrder/> and <comment/>

Does it mean that an instance document like

<?xml version="1.0"?>
<a:comment xmlns:a="http://www.example.com/PO1">
Hello
</a:comment>

is as http://www.example.com/PO1 schema valid as
the one with <purchaseOrder .../> root?

If it's the case then is the following document also schema-valid?

<?xml version="1.0"?>
<xsd:annotation xmlns:xsd="http://www.w3.org/2000/10/XMLSchema">
    <xsd:documentation>Hello</xsd:documentation>
</xsd:annotation>

Or the identity constraints on the <schema/> element itself will make a
document with <annotation/> root schema-invalid? What am I missing here?

Thanks,
Michael
Received on Wednesday, 14 February 2001 13:49:11 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.