W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2002

Re: mixed="true" and <simpleContent/>

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 08 Jun 2002 10:32:50 +0100
To: <asirv@webmethods.com>
Cc: <www-xml-schema-comments@w3.org>, "Ninggang Chen" <ninggang.chen@webmethods.com>
Message-ID: <f5bd6v22jzx.fsf@cogsci.ed.ac.uk>

"Asir S Vedamuthu" <asirv@webmethods.com> writes:

> <complexType name="something" mixed="true">
> 	<simpleContent>
> 		<restriction base="string">
> 		</restriction>
> 	</simpleContent>
> </complexType>
> This is a unique combination, a complex type with simple content and mixed
> content type. I believe that this combination is valid per XML Schema 1.0
> REC.

You're right that the sForS doesn't rule this out.  Neither is there
an XML Representation contstraint which rules it out, and there
probably should be.

But this isn't too serious, because the mapping rules for
<complexType> with <simpleContent> ignore the 'mixed' attribute, so
your example is mapped as if the 'mixed' wasn't there.

It would be easy to add a clause to 3.4.3 to remove this confusion,
and we should.

  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2002, 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/
 [mail really from me _always_ has this .sig -- mail without it is forged spam]
Received on Saturday, 8 June 2002 05:32:53 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:08:58 UTC