[Bug 3464] Allowing for xpath expressions to point to term definitions

http://www.w3.org/Bugs/Public/show_bug.cgi?id=3464





------- Comment #1 from ysavourel@translate.com  2006-07-19 16:27 -------
The proposed resolution for this is to have a termInfoPointer attribute in the
<termRule> element.

The termInfoPointer attribute value is an XPath expression relative to the
node(s) selected by the selector attribute of the <termRule> element. That
expression points to the node(s) where the data can be found.

So, given the example below:

...
<glist>
 <gitem>
  <label>Appaloosa</label>
  <def><p>Rugged saddle horse that has a white or solid-colored coat with small
spots.</p></def>
 </gitem>
</glist>
...

To express that the <def> element of <gitem> is the definition of the <label>
element, we could use the following rule:

<its:termRule selector="//gitem/label" termInfoPointer="../def"/>
or
<its:termRule selector="//gitem/label"
termInfoPointer="following-sibling::def"/>

A test application illustrating this mechanism can be found here:
http://lists.w3.org/Archives/Member/member-i18n-its/2006JulSep/0064.html

Received on Wednesday, 19 July 2006 16:27:34 UTC