W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2001

inaccurate statement in Schema Primer

From: Gignac Donald A CRBE <GignacDA@nswccd.navy.mil>
Date: Wed, 4 Apr 2001 09:36:14 -0400
Message-ID: <1F9F67162ADED3119F18009027A8F404C603CB@crbeex03.dt.navy.mil>
To: "'www-xml-schema-comments@w3.org'" <www-xml-schema-comments@w3.org>
Cc: "Westbrook Evelyn L (Lori) CRBE" <WestbrookEL@nswccd.navy.mil>, Junod L J II CRBE <JunodLJ@nswccd.navy.mil>
Section 3.1 "Target Namespaces & Unqualified Locals" (http://www.w3.org/TR/xmlschema-0/#UnqualLocals) states
	We next define a type called PurchaseOrderType that consists of the elements shipTo, billTo, comment, etc. 	PurchaseOrderType is also included in the schema's target namespace. Notice that the type references in the three 	element declarations are prefixed, i.e. po:USAddress, po:USAddress and po:comment, ...
This refers to
	<complexType name="PurchaseOrderType">
	<element name="shipTo" type="po:USAddress"/> 
	<element name="billTo" type="po:USAddress"/> 
	<element ref="po:comment" minOccurs="0"/> <!-- etc. --> 
	</sequence> <!-- etc. --> 

in the preceding example. However, "po:comment" is a "ref" reference. I recommend that

	the type references in the three element declarations 

be rewritten as

	the two type references and the ref reference in the three element declarations 

for greater clarity.

Donald Gignac	301-227-3348	"gignacda@nswccd.navy.mil"	
Received on Wednesday, 4 April 2001 09:37:13 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:49:56 UTC