W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2002

Allow key for complexType with simpleContent

From: by way of <taylor@ppdm.org>
Date: Tue, 14 May 2002 18:30:26 -0700
Message-Id: <>
To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>
It would be helpful in some cases to be able to apply a key to elements 
that are defined as a complexType with simpleContent.

Currently, Clause 3 of  Validation Rule Identity-constraint Satisfied 
(http://www.w3.org/TR/xmlschema-1/#cvc-identity-constraint) states:
For each node in the ˇtarget node setˇ all of the {fields}, with
that node as the context node, evaluate to either an empty node-set
or a node-set with exactly one member, **which must have a simple
type**. (my emphasis). [thanks to Jeni Tennison for pointing this out to me]

The only implementation I have come across that has NOT allowed identity 
constraints on elements of complexType/simpleContent is MSXML 4.0.


Rick Taylor
XML Developer
PPDM Association 
Received on Wednesday, 15 May 2002 00:40:29 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:00 UTC