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

Validating Link/XPointer local 'bare names'.

From: Eric van der Vlist <vdv@dyomedea.com>
Date: Fri, 01 Sep 2000 19:46:22 +0200
Message-ID: <39AFEB6E.AB005E39@dyomedea.com>
To: www-xml-linking-comments@w3.org

I am trying to use XLink/XPointer local 'bare names' to specify links
for nodes within the same document.

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"/>

And I wonder how I can validate (to check the existence of the
references) this kind of document.

The DTD or XML Schemas ID/IDREF mecanism and even the more flexible
key/keyref XML Schemas cannot validate references which are not strictly
equals to their definition and in this case, the "#" character needs to
be added to the reference.

Do you have any hints on how this issue could be handled ?



[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 Friday, 1 September 2000 13:45:21 UTC

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