Page 1 of 1

Topic's links as their numbers

Posted: Thu Jul 29, 2021 9:19 am
by Kot_1977
I use:
oXygen XML Editor 22.1, build 2020100710,
transformation scenario - "DITA Map PDF - based on XSL-FO",
For numbering topics, I use the "dita-ot-numbering-master" plugin.
I use custom.xsl against css.

I need links to topics to be displayed not as their titles, but as their numbers in pdf.
For example, instead of the link "Main characteristics" there was a number of this topic - 2.1.
I am trying to use the following files for this:
\plugins\org.dita.pdf2\xsl\fo\links.xsl
\plugins\dita-ot-numbering-master\dita-ot-numbering-master\customization.xsl.

Need help, advice :D .
Thanks in advance.

Re: Topic's links as their numbers

Posted: Thu Jul 29, 2021 11:40 am
by Radu
Hi,

In the past years our focus has been towards using CSS for styling and producing PDF.
I'm afraid I do not know the answer to your question, it's probably feasible, indeed you probably need to find the place where the xsl-fo link elements are generated in the "fo\links.xsl" and compute the target text in a different way, using maybe an xslt function to compute a counter value for a target topic.
You should also try to ask around on the DITA Users List, maybe there are users who already did something similar and have XSLT snippets to share:
https://dita-users.groups.io/g/main

Regards,
Radu