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

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

<!-- Groups -->
<xs:group name="PeriodGroup">
<xs:documentation xml:lang="en">Group defines a startDate and
<xs:element name="startDate" type="xs:date"/>
<xs:element name="endDate" type="EndDateType"/>
<xs:group name="DateUnionGroup">
<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:group ref="PeriodGroup"/>
<xs:element name="instant" type="xs:date">
<xs:documentation xml:lang="en">Instantaneous
<xs:element name="latest">
<xs:documentation xml:lang="en">Latest value does not support any
start or effective date.</xs:documentation>
<!-- Basic record types -->
<xs:complexType name="StringRecType">
<xs:documentation xml:lang="en">String record
<xs:restriction base="xs:anyType">
<xs:group ref="DateUnionGroup"/>
<xs:element name="value" type="xs:string"/>
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.