I wonder if anyone can verify my interpretation of a Xerces schema validation error. Our schema has type definitions containing components like: <complexType name="DictionaryEntryType"> <sequence> ... </sequence> <attributeGroup ref="gml:AssociationAttributeGroup"> <annotation> <documentation>Some text</documentation> </annotation> </attributeGroup> </complexType> Xerces complains: "Error at file C:\dev\schemas\src\gml/base/dictionary.xsd, line 78, char 57 Message: A <attributeGroup> declaration that has a ref attribute, cannot have child content." In http://www.w3.org/TR/xmlschema-1/#cAttribute_Group_Definitions I find the following: "The example above illustrates a pattern which recurs in the XML representation of schemas: The same element, in this case attributeGroup, serves both to define and to incorporate by reference. In the first case the name attribute is required, in the second the ref attribute is required, and the element must be empty." This appears to imply that it is not allowed to have an <annotation> child in a declaration (particle-use?) that uses the ref="..." form, even though an <annotation> does not contribute to the infoset. Is this correct? Or is Xerces being a little over-zealous?? ______ Simon.Cox@csiro.au CSIRO Exploration & Mining 26 Dick Perry Avenue, Kensington WA 6151 PO Box 1130, Bentley WA 6102 AUSTRALIA T: +61 (8) 6436 8639 F: +61 (8) 6436 8555 C: +61 (4) 0330 2672 http://www.csiro.au/page.asp?type=resume&id=CoxSimonReceived on Monday, 24 March 2003 21:02:16 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:36 GMT