Including the topic path and title in the PDF output
Are you missing a feature? Request its implementation here.
Including the topic path and title in the PDF output
Post by Anonymous1 »
In the past (using FrameMaker to create PDFs), we provided our translators with the translation project and a PDF. The PDF was our full english manual with one customization. The path and file name of each topic were included in the PDF. This looked like this:
Topic Title
BlaBla BlaBla topic description.
T:/manuals/project_a/spanish/chapter_name/topic_name.xml
When translating with Tansit, the topic path and name is also always visible. This information helped the translators to quickly jump to the right position in our PDF manual if they wanted to see the topic they were translating in context to other topics.
Is there a way to include the topic path and name in the PDFs we create with Oxygen using Apache FOP?
Topic Title
BlaBla BlaBla topic description.
T:/manuals/project_a/spanish/chapter_name/topic_name.xml
When translating with Tansit, the topic path and name is also always visible. This information helped the translators to quickly jump to the right position in our PDF manual if they wanted to see the topic they were translating in context to other topics.
Is there a way to include the topic path and name in the PDFs we create with Oxygen using Apache FOP?
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Including the topic path and title in the PDF output
Hi,
This seems feasible with an XSLT customization.
The XSLT template which outputs the topic title is located in:
OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\plugins\org.dita.pdf2\xsl\fo\commons.xsl
and is called:
<xsl:template match="*" mode="processTopicTitle">
It outputs an fo:block and after that you can add:
The "@xtrf" attribute is set on all DITA elements in the temporary files folder when processing and it refers to the original topic location.
Here's the recommended way in which an XSLT template can be overwritten from a customization:
https://www.oxygenxml.com/doc/versions/ ... ation.html
Regards,
Radu
This seems feasible with an XSLT customization.
The XSLT template which outputs the topic title is located in:
OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\plugins\org.dita.pdf2\xsl\fo\commons.xsl
and is called:
<xsl:template match="*" mode="processTopicTitle">
It outputs an fo:block and after that you can add:
Code: Select all
<fo:block>Original Topic: <xsl:value-of select="@xtrf"/></fo:block>
Here's the recommended way in which an XSLT template can be overwritten from a customization:
https://www.oxygenxml.com/doc/versions/ ... ation.html
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Re: Including the topic path and title in the PDF output
Post by Anonymous1 »
That worked perfectly 
Thank you.

Thank you.
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service