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

Re: [xmlschema-dev] <none>

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 09 Mar 2001 10:43:43 +0000
To: "Ben Marchal (Mailing Lists)" <bulk@pineapplesoft.com>
Cc: xmlschema-dev@w3.org
Message-ID: <f5b8zmfjk80.fsf@cogsci.ed.ac.uk>
"Ben Marchal (Mailing Lists)" <bulk@pineapplesoft.com> writes:

> Hello
> 
> I'm preparing a new paper on XML Schema and two issues are unclear to me. Id
> be grateful for any clarifications.
> 
> 
> Specifically, when an element contains a sequence of elements, I use
> xsd:complexType to define it. My question is do I have to insert a
> xsd:sequence element in there or can I just list the element?

You must use <xsd:sequence> (or <xsd:all> or <xsd:choice>).

> The second issue is I'm not sure I understand the practical differences
> between xsd:group and xsd:sequence.

<xsd:group name="xxx">...</xsd:group> is for _nameing_ a
sequence/choice/all.

<xsd:group ref="xxx"/> is for incorporating such a named
sequence/choice/all.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/
Received on Friday, 9 March 2001 05:43:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:20 GMT