Re: keyRefs

mccaleb@eeel.nist.gov (Michael McCaleb) writes:

> Dear XML Schema editor,
> 
> Comment:
> I know that the key and kefRef elements augment XML's ID/IDREF mechanism.
> However, does key and kefRef also augment XML's IDREFS mechanism? For
> example, does key and keyRef support the below data population?
> 
> <color colorName="red"    r="255"  g="0"    b="0"/>
> <color colorName="green"  r="0"    g="255"  b="0"/>
> <color colorName="blue"   r="0"    g="0"    b="255"/>
> <color colorName="purple" r="255"  g="0"    b="255"/>
> 
> 
> <PersonList>
>  <Person name="Mike" favoriteColors="red blue green"/>
>  <Person name="Jeni" favoriteColors="blue purple"/>
>  <Person name="Curt" favoriteColors="green"/>
>  <Person name="John" favoriteColors="blue purple green"/>
> </PersonList>

Nope, not supported -- the components of keys and keyrefs are
constrained to be nodes in the XSLT data model, and sub-ranges of
attribute values are not nodes.

> If not, I believe it would be an improvement if this ability where added to
> the XML Schema specification.

Thanks for the suggestion.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, 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/

Received on Thursday, 4 January 2001 10:28:04 UTC