W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2000

Specifying key/keyrefs constraints for Link/XPointer 'bare names'.

From: Eric van der Vlist <vdv@dyomedea.com>
Date: Sat, 02 Sep 2000 12:07:27 +0200
Message-ID: <39B0D15F.D02E3401@dyomedea.com>
To: www-xml-schema-comments@w3.org

I am trying to specify a key/keyref (or id/idref) constraint for a XLink
which is using the 'bare names' [1] XPointer scheme in the same

This means that I'll have a key definition like:

	<character id="character_Snoopy">

and a reference like:

	<character xlink:href="#character_Snoopy" xlink:type="simple"/>

The problem in both cases (key/keyref or id/idref) is that the "#" needs
to be added in the xlink:href reference.

Even with key/keyref, more flexible than id/idref, the keyref must be
constructed as a path to an existing node and cannot be the result of a
XPath function (string-after(@xlink:href, "#") would have done the trick

Is there any other way to solve my specific case or any chance that we
could change this in the spec ?



PS: a full XPointer would still be a more interesting case since, it's
the value of the attribute which should then be interpreted as XPath

[1] http://www.w3.org/TR/xptr#bare-names
Eric van der Vlist       Dyomedea                    http://dyomedea.com
http://xmlfr.org         http://4xt.org              http://ducotede.com
Received on Saturday, 2 September 2000 06:06:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:08:48 UTC