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

Can a Global Element have a minOccurs and maxOccurs?

From: David Spriet <infostring@yahoo.com>
Date: Sun, 28 Oct 2001 17:49:12 -0800 (PST)
Message-ID: <20011029014912.48064.qmail@web14509.mail.yahoo.com>
To: xmlschema-dev@w3.org
Is this valid?

<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" 
targetNamespace="http://test.com/test" >

  <element name="test" type="string" minOccurs="2"


Some people tell me yes and others say no.  I tested
it against IBM's XML Schema validator and it says yes.

I also looked in the SPEC and it says that only the
Particle holds the min and max Occurs and if this is
the case then this is not valid because Global
Elements do not have Particles.

Dave Spriet

I have not changed my email address so please Reply-To spriet@infostring.com

Do You Yahoo!?
Make a great connection at Yahoo! Personals.
Received on Sunday, 28 October 2001 20:49:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:14:55 UTC