Re: Abstract type and derivation

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