- From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
- Date: 04 Jan 2001 18:23:35 +0000
- To: MarkH@i2.co.uk
- Cc: xmlschema-dev@w3.org, support@xmlspy.com
MarkH@i2.co.uk writes: > <?xml version='1.0'?> > <schema xmlns='http://www.w3.org/2000/10/XMLSchema' > xmlns:vlvx='http://www.i2group.com/2001-01-01/VLVXSchema' > targetNamespace='http://www.i2group.com/2001-01-01/VLVXSchema'> > > <complexType name='elementPropertyType'> > <annotation> > <documentation>Generic string property (name/value) on > element</documentation> > </annotation> > <attribute name='name' type='string' use='required'/> > <attribute name='value' type='string' use='required'/> > </complexType> > > <complexType name='displayNamePropertyType'> > <annotation> > <documentation>Generic string property (name/value) on > element</documentation> > </annotation> > <simpleContent> > <restriction base='vlvx:elementPropertyType'> > <attribute name='name' type='string' use='required' > value='displayName'/> > </restriction> > </simpleContent> > </complexType> > > Validating with XSV 1.173/1.80 of 2000/10/18 15:54:58 says everything is > fine. > > Validation with XML Spy v3.5 beta 3 normally says its ok too - unless you > modify the document externally and cause XML Spy to revalidate when it > regains application focus. It then complains that simpleContent cannot have > a base (vlvx:elementPropertyType) that is a complexType with complexContent. > > Who's right here? XML Spy is showing at least one bug here (reporting a > validation error intermittently). But is XSV right to allow the above? XSV is definitely wrong. Thanks for spotting this, I'll get a fix out soon. 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, 4 January 2001 13:23:38 UTC