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, "PeriodGrou p" and "DateUnionGroup ".
Afterwards, a record type called "StringRecT ype" is defined. The error
is generated by the line ...<xs:group ref="DateUnionG roup"/>...
Any ideas?
Many thanks
Max
<!-- Groups -->
<xs:group name="PeriodGro up">
<xs:annotatio n>
<xs:documentati on xml:lang="en">G roup defines a startDate and
endDate.</xs:documentatio n>
</xs:annotation>
<xs:sequence>
<xs:element name="startDate " type="xs:date"/>
<xs:element name="endDate" type="EndDateTy pe"/>
</xs:sequence>
</xs:group>
<xs:group name="DateUnion Group">
<xs:annotatio n>
<xs:documentati on xml:lang="en">D ate group supports alternate date
strategies. Used by entity facts that usually have a period, but are
initially stored by latest value.</xs:documentatio n>
</xs:annotation>
<xs:sequence>
<xs:choice>
<xs:group ref="PeriodGrou p"/>
<xs:element name="instant" type="xs:date">
<xs:annotatio n>
<xs:documentati on xml:lang="en">I nstantaneous
date.</xs:documentatio n>
</xs:annotation>
</xs:element>
<xs:element name="latest">
<xs:annotatio n>
<xs:documentati on xml:lang="en">L atest value does not support any
start or effective date.</xs:documentatio n>
</xs:annotation>
<xs:complexTy pe/>
</xs:element>
</xs:choice>
</xs:sequence>
</xs:group>
<!-- Basic record types -->
<xs:complexTy pe name="StringRec Type">
<xs:annotatio n>
<xs:documentati on xml:lang="en">S tring record
type.</xs:documentatio n>
</xs:annotation>
<xs:complexCont ent>
<xs:restricti on base="xs:anyTyp e">
<xs:sequence>
<xs:group ref="DateUnionG roup"/>
<xs:element name="value" type="xs:string "/>
</xs:sequence>
</xs:restriction>
</xs:complexConte nt>
</xs:complexType>