Re: [xmlschema-dev] <none>

"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 UTC