473,401 Members | 2,146 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

XMLspy validation problem: xs:group

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
0 1389

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

Similar topics

4
by: Andrew | last post by:
Antony (4:26 PM) : Hello all ! I have a problem with XML schema. My XML document which I need to be validated can be one of the following two types: 1st type is
2
by: unishippers.suckfeed.newshosting.com | last post by:
Thanks for the response, Priscilla, it was very useful, Now: what if I want to have an empty group that will only contain atomic sub elements of the containing type: <object> <things>...
0
by: George Jordanov Ivanov | last post by:
Hi there, I have a problem related with validation of a container control, containing other container controls. Scenario: I have a dialog based Windows form, containing a group control (which...
1
by: sck10 | last post by:
Hello, I have a button that is associated with a validation group. When I click the button and a validation fails, I still want to code to execute. Can this be done? Any help with this would...
1
by: Buddy Ackerman | last post by:
I don't know what the problem is. I have a form with several controls that need to be validated, I put a validation group in every form control, every validatoino control, the submit button and...
5
by: Lloyd Dupont | last post by:
On my page the user is ask to set of question. Say there I have 2 controls like that == pseudo-C#-code for my control == class MyControl : CompositeControl { TextBox text; LinkButton button ...
2
by: moondaddy | last post by:
How can I have a page with 2 different groups of controls (where each group of controls contain textboxes, validation controls and a submit button) and each group operate independently? for...
2
by: Aray | last post by:
I googled for it for few houres, but didn't resolve it, any hints will be thinkfull. I want to use the following XSD file to guarantee <element1is unique, but it doesn't work. The following...
0
by: RC | last post by:
Please see the example below. What is/are the difference(s) between xs:group and xs:extension <xs:complexType name="personinfo"> <xs:sequence> <xs:element name="firstname" type="xs:string"/>...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.