- From: Eric van der Vlist <vdv@dyomedea.com>
- Date: Wed, 14 Nov 2001 11:43:51 +0100
- To: xmlschema-dev@w3.org
XSV (1.4 or 1.2) doesn't seem to appreciate group redefinition! included.xsd: <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:group name="group"> <xs:sequence> <xs:element name="a" type="xs:token"/> </xs:sequence> </xs:group> </xs:schema> main.xsd: <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:redefine schemaLocation="included.xsd"> <xs:group name="group"> <xs:sequence> <xs:group ref="group"/> <xs:element name="b" type="xs:token"/> </xs:sequence> </xs:group> </xs:redefine> <xs:element name="root"> <xs:complexType> <xs:group ref="group"/> </xs:complexType> </xs:element> </xs:schema> Instance doc: <root> <b/> <a/> </root> Result: <?xml version='1.0'?> <xsv docElt='{None}root' instanceAssessed='false' schemaDocs='main.xsd' schemaErrors='0' target='/home/vdv/repros/xsv/groups.xml' version='XSV 1.203.2.24/1.106.2.12 of 2001/11/09 15:45:05' xmlns='http://www.w3.org/2000/05/xsv'> <schemaDocAttempt URI='/home/vdv/repros/xsv/main.xsd' outcome='failure' source='command line'/> <schemaDocAttempt URI='/home/vdv/repros/xsv/included.xsd' outcome='success' source='redefine'/> <bug>validator crash during command line: Traceback (most recent call last): File "/home/vdv/scripts/xmlschema/XMLSchema.py", line 517, in checkinSchema res=self.fromFile(loc,namespace,why,btlist,ne,useDTD,keepGoing) File "/home/vdv/scripts/xmlschema/XMLSchema.py", line 313, in fromFile sdoc.documentElement) File "/home/vdv/scripts/xmlschema/layer.py", line 277, in fromFile res=self.processElement(root) File "/home/vdv/scripts/xmlschema/layer.py", line 361, in processElement eres.append(self.processElement(d)) File "/home/vdv/scripts/xmlschema/layer.py", line 398, in processElement res.init(elt) File "/home/vdv/scripts/xmlschema/XMLSchema.py", line 3567, in init dd.component.redefine() AttributeError: 'Sequence' instance has no attribute 'redefine' </bug> </xsv> Hope this helps, Eric -- Rendez-vous à Paris pour le Forum XML. http://www.technoforum.fr/Pages/forumXML01/index.html ------------------------------------------------------------------------ Eric van der Vlist http://xmlfr.org http://dyomedea.com http://xsltunit.org http://4xt.org http://examplotron.org ------------------------------------------------------------------------
Received on Wednesday, 14 November 2001 07:24:01 UTC