Using xlink:href in caption/hint/help

Section "8.12.4 Common Child Elements" of the WD states:

<<
Instead of supplying such metadata e.g., the label for a form control as
inline content of the contained element caption, the metadata can be pointed
to by using a simple XLink attribute xlink:href on these elements. Notice
that systematic use of this feature can be exploited in internationalizing
XForms user interfaces by: 

Factoring all human readable messages to a separate resource XML file.

* Using URIs into this XML resource bundle within individual caption
elements *

Finally, an XForms processor can use content negotiation to obtain the
appropriate XML resource bundle, e.g., based on the accept-language headers
from the client, to serve up the user interface with messages localized to
the client's locale.
>>

My question is in regards to the second bullet stating that the xlink:href
attribute may contain a URI *into* the XML resource bundle. What should this
URI look like? 

Do I use XPointer?

<caption
xlink:href="http://www.foo.com/bundles/captions.xml#xpointer(id('quantity'))
" />

..or maybe just the id of an XML element?

<caption xlink:href="http://www.foo.com/bundles/captions.xml#quantity" />

In any case, the addressing scheme should be specified.

My apologies if this is specified elsewhere.

- Ryan

Received on Sunday, 17 February 2002 21:15:49 UTC