Re: IDREF constraint

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 UTC