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

Problem with key!

From: Cyrill Zadra <czadra@bluewin.ch>
Date: Wed, 24 Jul 2002 16:28:28 -0400 (EDT)
Message-ID: <3D3F0DEE.70501@bluewin.ch>
To: xmlschema-dev@w3.org




Hi

I road many article to the theme unique, key an keyref but i'm still not 
understanding how it works.

In my projekt there is an element user with the attribute *id*. The user 
  element can be found many times but the id must always be a different 
value.

<user id="1">
	<name></name>
	<email></email>
</user>
<user id="2">
	<name></name>
	<email></email>
</user>

I thougt it would be possible with "key", wouldn't it? If not, how would 
you realize this problem?

Many thanks in advance.

Cyrill
Received on Monday, 29 July 2002 05:23:04 UTC

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