Topic's links as their numbers

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
Kot_1977
Posts: 15
Joined: Thu Dec 10, 2020 11:00 am

Topic's links as their numbers

Post by Kot_1977 » Thu Jul 29, 2021 9:19 am

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.

Radu
Posts: 7594
Joined: Fri Jul 09, 2004 5:18 pm

Re: Topic's links as their numbers

Post by Radu » Thu Jul 29, 2021 11:40 am

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply