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

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

  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 UTC

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