Change the appearance of <filepath> in PDF to be something similar as in the oXygen XML Editor

Having trouble installing Oxygen? Got a bug to report? Post it all here.
BogdanM777
Posts: 68
Joined: Tue Jun 09, 2015 6:26 pm
Location: Canada

Change the appearance of <filepath> in PDF to be something similar as in the oXygen XML Editor

Post by BogdanM777 »

Hi guys,

I think I am entering this question the 3rd time. I do not know why it did not appear the previous 2 times in the forum. I also made sure to check the Notify me when a reply is posted.
I would like to have another appearance of whatever is between the <filepath> tags to be something different than the rest of the text in PDF, something like in the XML Editor.
The content between the <filepath> tags is supposed to be a little bit different than the rest of the text (font and formatting), and for some reason, what I get in the generated PDF is something I could have got w/o using the <filepath> tag.

Thank you
Radu
Posts: 9449
Joined: Fri Jul 09, 2004 5:18 pm

Re: Change the appearance of <filepath> in PDF to be something similar as in the oXygen XML Editor

Post by Radu »

Hi Bogdan,
I think I am entering this question the 3rd time. I do not know why it did not appear the previous 2 times in the forum. I also made sure to check the Notify me when a reply is posted.
I'm not sure about that, you are an approved user, I will check again on our side.
I would like to have another appearance of whatever is between the <filepath> tags to be something different than the rest of the text in PDF, something like in the XML Editor.
By default, without any PDF customizations the filepath element appears with monospace font in the PDF output.
If you look at the XSLT stylesheet:

DITA-OT/plugins/org.dita.pdf2/cfg/fo/attrs/sw-domain-attr.xsl

it defines an attribute set like:

Code: Select all

    <xsl:attribute-set name="filepath" use-attribute-sets="base-font">
<xsl:attribute name="font-family">monospace</xsl:attribute>
</xsl:attribute-set>
If somehow this does not work in your case, either one of your other PDF customizations somehow overrides this default behavior or maybe a monospaced font cannot be found by the FO processor when producing the PDF.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply