← Prev in month ← Prev in thread
Next in thread → Next in month →

Re: IDREF constraint

From
<>
To
Alessandro Di Bella <>
Date
2002-12-17T15:25:52Z
ID
<>
Thread
Re: IDREF constraint
Alessandro Di Bella <> 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: 
		     URL: http://www.ltg.ed.ac.uk/~ht/
 [mail really from me _always_ has this .sig -- mail without it is forged spam]
← Prev in month ← Prev in thread
Next in thread → Next in month →