Hello Bruno,
rather than having to wave the mouse over each xref and unveil each xref destination link (on demand).
How about if you render the value of the
@href attribute? Is that an acceptable information? I know that it is not perfect but it is the fastest obtainable information.
Code: Select all
/* fn xref */
*[class ~= "topic/link"][href *= "/fn"]:before,
*[class ~= "topic/xref"][href *= "/fn"]:before,
*[class ~= "topic/link"][type][href *= "/fn"]:before,
*[class ~= "topic/xref"][type][href *= "/fn"]:before{
vertical-align: super;
color: rgb(57, 169, 220);
content: "(" attr(href) ")";
}
So the ideal would be that the xref is prefixed with the fn index, alternate solution I was thinking of would be that the xref is prefixed with the first characters of the fn text.
The CSS function
oxy_xpath() can help with that:
Code: Select all
[code]/* fn xref */
*[class ~= "topic/link"][href *= "/fn"]:before,
*[class ~= "topic/xref"][href *= "/fn"]:before,
*[class ~= "topic/link"][type][href *= "/fn"]:before,
*[class ~= "topic/xref"][type][href *= "/fn"]:before{
vertical-align: super;
color: rgb(57, 169, 220);
content: "("
oxy_xpath(oxy_concat('doc(resolve-uri(substring-before(@href, "#")))//fn[@id="', oxy_substring(attr(href), oxy_add(oxy_indexof(attr(href), '/'), 1, 'integer')), '"]/text()'))
")";
}
oxy_xpath() can introduce performance penalties. When the document gets modified, these xpath expressions need to be executed again to ensure they present up to date information. The more such xref elements you have, the more intensive the processing becomes. An optional
evaluate parameter can help reduce or eliminate these performance aspects. If these "fn" targets are in a different file, you could set the
evaluate parameter to
static. This means you will have to manually press F5 to refresh the text presented for the xrefs. If the "fn" elements don't change that often then this might be a solution.
Anyway, if none of the above are acceptable, please let me know, and I will begin talking about our Java SDk and how to extend oxy_link-text().
Best regards,
Alex