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

Re: How to reference attributes from list items

From: Eric Jain <Eric.Jain@isb-sib.ch>
Date: Mon, 9 Sep 2002 18:40:42 +0200
Message-ID: <007701c2581f$a3c36fc0$2fd721c0@caliente>
To: <noah_mendelsohn@us.ibm.com>
Cc: "xmlschema-dev" <xmlschema-dev@w3.org>

> it was understood from the start that more general co-occurrence
> constraints would be need, but I'm not at all sure in retrospect that we
> did the right thing to do key/keyref first.

Thanks for the insight. I guess in order to express co-occurrence
constraints in a general way you would need some kind of if-then-else
constructs. Meanwhile, I'm sure you love to see people misusing keys to do
things such as:

<xsd:key name="commentValue">
   <xsd:selector xpath="comments/comment"/>
   <xsd:field xpath="@value|value"/>


Eric Jain
Received on Monday, 9 September 2002 12:40:37 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:05 UTC