Re: VS:Re: Allowing empty element content

Henna Ilvonen <hilvonen@lut.fi> writes:

> >On the other hand, why isn't making the content optional sufficient
> >for your needs?
>  Actually it is; i'm just haven't been able to find a way to do that with
> schema and was looking for advice for that.

Simply add minOccurs='0' to the <sequence>, <all>, or <choice> which
bounds your content model.

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 Monday, 17 September 2001 06:50:24 UTC