[Home] [By Thread] [By Date] [Recent Entries]

  • To: Alessandro Di Bella <alessandro.dibella@e...>
  • Subject: Re: IDREF constraint
  • From: ht@c... (Henry S. Thompson)
  • Date: 17 Dec 2002 15:25:52 +0000
  • Cc: xmlschema-dev@w..., xml-dev@l...
  • In-reply-to: <3DFF3C83.8070201@e...>
  • References: <3DFF3C83.8070201@e...>
  • Sender: ht@i...
  • User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Military Intelligence)

Alessandro Di Bella <alessandro.dibella@e...> 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@c...
		     URL: http://www.ltg.ed.ac.uk/~ht/
 [mail really from me _always_ has this .sig -- mail without it is forged spam]

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member