Hi,
I'm getting the following validation error with XMLspy when validating
an "xsd" file:
Schema Error: the group 'DateUnionGroup' is undefined
However, in the xsd document the group 'DateUnionGroup' IS defined.
This is an extract of the document
First, two groups are defined, "PeriodGroup" and "DateUnionGroup".
Afterwards, a record type called "StringRecType" is defined. The error
is generated by the line ...<xs:group ref="DateUnionGroup"/>...
Any ideas?
Many thanks
Max
<!-- Groups -->
<xs:group name="PeriodGroup">
<xs:annotation>
<xs:documentation xml:lang="en">Group defines a startDate and
endDate.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="startDate" type="xs:date"/>
<xs:element name="endDate" type="EndDateType"/>
</xs:sequence>
</xs:group>
<xs:group name="DateUnionGroup">
<xs:annotation>
<xs:documentation xml:lang="en">Date group supports alternate date
strategies. Used by entity facts that usually have a period, but are
initially stored by latest value.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:choice>
<xs:group ref="PeriodGroup"/>
<xs:element name="instant" type="xs:date">
<xs:annotation>
<xs:documentation xml:lang="en">Instantaneous
date.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="latest">
<xs:annotation>
<xs:documentation xml:lang="en">Latest value does not support any
start or effective date.</xs:documentation>
</xs:annotation>
<xs:complexType/>
</xs:element>
</xs:choice>
</xs:sequence>
</xs:group>
<!-- Basic record types -->
<xs:complexType name="StringRecType">
<xs:annotation>
<xs:documentation xml:lang="en">String record
type.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:restriction base="xs:anyType">
<xs:sequence>
<xs:group ref="DateUnionGroup"/>
<xs:element name="value" type="xs:string"/>
</xs:sequence>
</xs:restriction>
</xs:complexContent>
</xs:complexType>