<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hello,</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">The LinkTextResolver API should work in
      Web Author but you will not be able to read the counter value -
      there is no API for this. You can try to compute the counter
      yourself. A second problem is that the text of the link will not
      be updated when a figure is inserted or deleted. You will have to
      trigger these updates yourself.</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Can you give more details about what
      users are trying to achieve using this text for Figure references?
      I understand its utility in a printed PDF, but in this case you
      will not have to update the link text when a figure changes. So,
      the solution would be simpler if needed only for printing.</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Best,</div>
    <div class="moz-cite-prefix">Cristian<br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">On 12/5/2018 6:09 PM, Jirka Kosek
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:1a8d326b-9280-1c37-0930-b59a4a6d9046@kosek.cz">
      <pre class="moz-quote-pre" wrap="">Hi,

I need to customize display of DocBook xref elements pointing to
figures. Such xrefs shouldn't display title of referenced figure, but
instead figure number should be displayed (something like Figure 3.2).

I was reading documentation but my impression is that this can't be done
in pure CSS with oXygen extensions. Instead I have to implement my own
LinkTextResolver:

<a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/InstData/Editor/SDK/javadoc/ro/sync/ecss/extensions/api/link/LinkTextResolver.html">https://www.oxygenxml.com/InstData/Editor/SDK/javadoc/ro/sync/ecss/extensions/api/link/LinkTextResolver.html</a>

Is that right assess or have I missed something? Also will
LinkTextResolver work in Web Author?

In this particular case it would be useful to have access to content
generated by :before on the link target. For example with function like
oxy_link-text-before() my problem could be easily solved as:

xref { content: oxy_link-text-before(); }

Many thanks in advance,

                                        Jirka


</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
oXygen-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/mailman/listinfo/oxygen-user">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>
</pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>