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

Enforcing IDs in XML Schema

From: Simon Kampa <simon.kampa@stasys.co.uk>
Date: Fri, 30 Apr 2004 11:04:06 +0100
Message-ID: <DCDFD5C82EF1D24894BD24EA6D9EA72C49364C@f00exc01.ulan.stasys.co.uk>
To: <xmlschema-dev@w3.org>


I would like to use XML Schema to enforce something like the following:

<definition id="12345">

  <def ref="12345"/>

So, if an ID is used as a reference in the <def> element, there HAS TO
BE a correpsonding <definition> element with the same ID. Is it possible
to do this in XML Schema? Ideas?



This email and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed. They may contain sensitive and/or in confidence information that is covered by legal, professional or other privilege. No mistake in transmission is intended to waive or compromise any such privilege. If you have received this email in error please notify the sender at once.

This email has been scanned for viruses on behalf of STASYS Limited by
the MessageLabs Email Security System.
Received on Friday, 30 April 2004 06:04:34 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:05 UTC