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

Problem with multi-field keys

From: Jim Stanley <JimS@Media-Services.Com>
Date: Wed, 30 Jun 2004 16:51:22 -0700
Message-Id: <s0e2ef9c.044@mail.MEDIA-SERVICES.COM>
To: <xmlschema-dev@w3.org>
Hello all,

I'm old to programming but new to XML and XML Schema.  I'm trying to
define a unique or primary key on a parent-child combination (i.e.
individual elements may not be unique, but the combination of element
and category must be).  Although I think I'm forming the key correctly
(you use "." to establish the node context, start from the parent and
work downward to establish uniqueness), the sample document is telling
me I have too many values - in both XMLSpy and MSXML, so I know I'm
doing something wrong.

Can another pair of eyes shed some light?  The attached sample files
illustrate the problem.

Thanks in advance

Jim Stanley
Media Services, Inc.


Received on Wednesday, 7 July 2004 14:50:41 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:15:10 UTC