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

Re: IDREF constraint

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 17 Dec 2002 15:25:52 +0000
To: Alessandro Di Bella <alessandro.dibella@eng.it>
Cc: xmlschema-dev@w3.org, xml-dev@lists.xml.org
Message-ID: <f5bd6o0d5vj.fsf@erasmus.inf.ed.ac.uk>

Alessandro Di Bella <alessandro.dibella@eng.it> writes:

> does anyone know if there is a way of constraining the value if an IDREF
> attribute in order allows as values only IDS of specified elements ?

Use (key or unique) and keyref, then you can have separate namespaces
for different key families.  There's an introduction to key/keyref in
the Primer [1].

ht

[1] http://www.w3.org/TR/xmlschema-0/
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2002, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/
 [mail really from me _always_ has this .sig -- mail without it is forged spam]
Received on Tuesday, 17 December 2002 10:25:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:35 GMT