W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2002

pair interactions in XML schema

From: Jos van den Oever <oever@fenk.wau.nl>
Date: Sat, 15 Jun 2002 13:28:30 -0400 (EDT)
To: xmlschema-dev@w3.org
Message-Id: <200206151928.24640.oever@fenk.wau.nl>

Hi all,

For the description of pair interactions I'd like to be able to make an XML 
file like this (items renamed for convenience):

<person name='Jack'>...</person>
<person name='Jane'>...</person>
<person name='Pete'>...</person>

<acquaintance years='9'><person name='Jack'><person 
<acquaintance years='1'><person name='Pete'><person 
<acquaintance years='3'><person name='Jack'><person 

Of course, each acquaintance between two persons can only be defined once. And 
the acquaintance of one person with the same person cannot be defined either.

Is it possible to enforce these rules with Schema?
It seems I cannot use complexTypes as keys, which would solve the problem.

Best regards, Jos
Received on Sunday, 16 June 2002 05:16:39 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:57 UTC