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

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

ht
-- 
  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