473,774 Members | 2,128 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XMLspy validation problem: xs:group

1 New Member
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>
Nov 1 '06 #1
0 1404

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

Similar topics

4
1677
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
8390
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> <thing> 1 </thing>
0
1134
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 is a container also). The group control contains multiple other simple controls - 2 text boxes and 3 combo boxes. The form has 2 buttons representing the well-known OK and Cancel buttons. What I am trying to do: I handle Validating event for all...
1
3027
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 be appreciate. Thanks in advance, Sck10 In my code behind: Sub Submit_Click(ByVal Sender As Object, ByVal Args As EventArgs)
1
1817
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 the validation summary control. I want it to do client side validation so I set every validation control display property to none and set the validation summary control to ShowMessage to true and ShowSummary to false. Als form controls set...
5
1910
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 override void CreateChildControl() {
2
452
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 example, when the user clicks on the first submit button, it wont submit unless all the controls in group 1 are valid, likewise, when the user clicks on the 2nd submit button, it wont submit unless all the controls in group 2 are valid. thanks.
2
3722
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 is my XSD file and XML file: ----------- test.xsd ---------------- <?xml version="1.0" encoding="UTF-8"?>
0
7604
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"/> <xs:element name="lastname" type="xs:string"/> </xs:sequence> </xs:complexType>
0
9621
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9914
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7463
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6717
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5355
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5484
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4012
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3611
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.