W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2000

Re: Abstract type and derivation

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 21 Dec 2000 17:43:33 +0000
To: "Bruno Chatel" <bcha@chadocs.com>
Cc: <xmlschema-dev@w3.org>
Message-ID: <f5bpuilwtyy.fsf@cogsci.ed.ac.uk>
"Bruno Chatel" <bcha@chadocs.com> writes:

> I write a XML Schema using the "abstract type" feature, and related
> extension .  Every thing is ok with XSV, but I am not able to load a
> document with XML Spy (3.5 beta2) because of it raise an error on an
> element using abstrcat type.  Error message is Nothing allowed
> inside empty element "blabla"
> 
> Is it a problem in my declarations or a mistake in XMLSpy ?
> 
> mc.xsd
> --------
> <xsd:element name="then" type="actType"/>
> <xsd:complexType name="actType" abstract="true"/>
> 
> phr.xsd
> --------
> <import namespace="..." schemaLocation="mc.xsd/>
>  <xsd:complexType name="phrActType">
>   <xsd:complexContent>
>    <xsd:extension base="mc:actType">
>       <xsd:choice maxOccurs="unbounded">
>         <!-- elements -->
>         ...
>       </xsd:choice>
>    <xsd:extension>
>  </xsd:complexContent>
> </xsd:complexType>
> 
> 
> phr.xml (corresponding to phr.xsd)
> ------------------------------------
> <mc:then xsi:type="phrActType">
>     .....
> </mc:then>
> 
> 
> XMLSpy error message
> -------------------------
> Nothing allowed inside empty element "mc:then"

I believe your stuff is OK, so I guess we need to here from XML Spy as 
to why they reject it.

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 Thursday, 21 December 2000 12:43:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:19 GMT