- From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
- Date: 12 Jan 2002 23:22:51 +0000
- To: Pete Johnston <p.johnston@ukoln.ac.uk>
- Cc: xmlschema-dev@w3c.org
Pete Johnston <p.johnston@ukoln.ac.uk> writes: > Hi, > > I'm relatively new to XML Schema, so I may well be missing something > blindingly obvious, but I'd appreciate any help. One of the problems I've > encountered is the varying levels of support in different validating > parsers, but where there are variations, I've tended to place my faith in > XSV. Alas, misplaced in this case. Your example uncovered a bug, now fixed (online and source tree only, executable update tomorrow I hope). > (File testdc.xsd) > > <xs:schema > xmlns:xs="http://www.w3.org/2001/XMLSchema" > xmlns="http://purl.org/dc/elements/1.1/" > targetNamespace="http://purl.org/dc/elements/1.1/" > elementFormDefault="qualified" > attributeFormDefault="qualified"> > > <xs:complexType name="elementType"> > <xs:simpleContent> > <xs:extension base="xs:string"> > <xs:attribute name="myatt1" type="xs:string"/> > </xs:extension> > </xs:simpleContent> > </xs:complexType> > > <xs:element name="title" type="elementType"/> > > </xs:schema> > > > I'm trying to redefine this in a second schema > > (File new-testdc.xsd) > > <xs:schema > xmlns:xs="http://www.w3.org/2001/XMLSchema" > xmlns:dc="http://purl.org/dc/elements/1.1/" > xmlns="http://purl.org/dc/elements/1.1/" > targetNamespace="http://purl.org/dc/elements/1.1/" > elementFormDefault="qualified" > attributeFormDefault="qualified"> > > <xs:redefine schemaLocation="testdc.xsd"> > > <xs:complexType name="elementType"> > <xs:simpleContent> > <xs:extension base="elementType"> > <xs:attribute name="myatt2" type="xs:string"/> > </xs:extension> > </xs:simpleContent> > </xs:complexType> > > </xs:redefine> > > </xs:schema> This is fine, and XSV is now happy with it. Sorry for your troubles. 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 Saturday, 12 January 2002 18:22:57 UTC