W3C home > Mailing lists > Public > public-i18n-its@w3.org > July to September 2006

[Bug 3463] termInfoRef should allow for id strings

From: <bugzilla@wiggum.w3.org>
Date: Wed, 19 Jul 2006 16:19:21 +0000
CC:
To: public-i18n-its@w3.org
Message-Id: <E1G3Eld-0006ds-5W@wiggum.w3.org>

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





------- Comment #1 from ysavourel@translate.com  2006-07-19 16:19 -------

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. XPath 1.0 and its
successor have an id() function that allows to select nodes specifying their
IDs.

So, given the example below:

...
<p>Text of the first <termref def="myID">paragraph</termref>.</p>
...
<p id="myID">A paragraph is a group of sentences.</p>
...

To express that the def attribute of <termref> points to the definition of the
term, we could use the following rule:

<its:termRule selector="//termref" termInfoPointer="id(@def)"/>

A test application can be found here:
http://lists.w3.org/Archives/Member/member-i18n-its/2006JulSep/0064.html
Received on Wednesday, 19 July 2006 16:19:30 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:43:07 UTC