IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Profile: DJexor
About
User Name: DJexor
Forum Rank: Newbie
Real Name:
Location Netherlands
Occupation:
Interests:
Gender: None Specified
Statistics
Joined: Friday, July 17, 2009
Last Visit: Monday, March 22, 2010 1:34:59 PM
Number of Posts: 3
[0.02% of all post / 0.00 posts per day]
Avatar
Last 10 Posts
Topic: XSD Constraint problem
Posted: Monday, March 22, 2010 11:30:34 AM
Dear Colleagues,

I'm having a problem with the key constraint and keyref constraint feature in XMLSpy. I have an abstract element called "A" and three elements called "X", "Y" and "Z", all from substitutiongroup "A".
When I want to make a element called "CollectionXandY" Im connecting the abstract element "A" behind it and add a key constraint with selector = "X" and field = * and a key constraint with selector = "Y" and field = *. To me this would make a path that only elements from "X" and "Y" can be put into the CollectionXandY, but when im generating a XML script it is possible to choose "Z" and it validates. Does anyone know what i have to do to make it only able to choose elements of "X" and "Y" in this collection?
I hope someone can help me. Thanks in advance!

Regards,
Jordie
Topic: XOR association?
Posted: Friday, July 17, 2009 8:24:39 AM
Perfect that's exactly what I needed! Thanks Cor!
Topic: XOR association?
Posted: Friday, July 17, 2009 8:13:45 AM
Dear readers,

I'm working on a class diagram and was wondering how I can make a XOR constraint between two associations. If it doesn't exist in Altova, can somebody tell me a solution for this?

I have a class Relation with some main details. In the view of the company i work for, a Relation can be a person or a company for example, so I made two classes for these. I made i association between class Person and class Relation and a association between class Company and class Relation. Now I would like to add the XOR constraint between these two associations and here I need your help! :-)

Thanks in advance! Regards,

Jordie

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.