[oXygen-user] Custom styling of xrefs in CSS?
Jirka Kosek
jirka at kosek.cz
Wed Dec 5 10:09:03 CST 2018
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:
https://www.oxygenxml.com/InstData/Editor/SDK/javadoc/ro/sync/ecss/extensions/api/link/LinkTextResolver.html
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
--
------------------------------------------------------------------
Jirka Kosek e-mail: jirka at kosek.cz http://xmlguru.cz
------------------------------------------------------------------
Professional XML and Web consulting and training services
DocBook/DITA customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
Bringing you XML Prague conference http://xmlprague.cz
------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20181205/0d5589f3/attachment.sig>
More information about the oXygen-user
mailing list