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 
name='Pete'></<acquaintance>
<acquaintance years='1'><person name='Pete'><person 
name='Jane'></<acquaintance>
<acquaintance years='3'><person name='Jack'><person 
name='Jane'></<acquaintance>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:31 GMT