By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,364 Members | 1,691 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,364 IT Pros & Developers. It's quick & easy.

XMLspy validation problem: xs:group

P: 1
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>
Nov 1 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.