Page 1 of 1

definition list and parameter list format shown in PDF with Oxygen

Posted: Mon Apr 10, 2017 10:16 am
by Nikky_zhang
Hi,

I am trying to convert definition list and parameter list to different formats with Oxygen.

I saw that in c:\oxygen\framework\dita\dita-ot\plugins\org.dita.pdf2\xsl\fo\tables.xsl.

There, the definition list is treated as a table. But when it is transformed to pdf, it still looks like nomal text. Not like a table.

Such as :

<dl>
<dlentry>
<dt>zhang</dt>
<dd>zhang</dd>
</dlentry>
</dl>

The output looks like as below:
Zhang
zhang

which .xsl controls the definition list ?

Another question is

The class of the definition list is topic/dl

The class of the parameter list is +topic/dl pr-d/parml

If I want to customize the output of definition list and parameter list. For example, one is outputed as a table, another one is a bullet. I want to know how to differ them from the class attributes with template (see below)

<xsl:template match="*[contains@class,' pr-d/parml']"



Thanks!!!

Nikky

Re: definition list and parameter list format shown in PDF with Oxygen

Posted: Mon Apr 10, 2017 2:59 pm
by Radu
Hi Nicky,
The output looks like as below:
Zhang
zhang

which .xsl controls the definition list ?
The default PDF processing uses that XSLT template from "tables.xsl" which creates a borderless table with one column having the terms and the other the values. If this does not work for you, then somehow your PDF customization XSLTs broke the rendering. I do not have enough details to know why.
The class of the definition list is topic/dl
The class of the parameter list is +topic/dl pr-d/parml
If I want to customize the output of definition list and parameter list. For example, one is outputed as a table, another one is a bullet. I want to know how to differ them from the class attributes with template (see below)

<xsl:template match="*[contains@class,' pr-d/parml']"
Yes, so the template above will match parml.

Regards,
Radu

Re: definition list and parameter list format shown in PDF with Oxygen

Posted: Tue Apr 11, 2017 6:40 am
by Nikky_zhang
Hi Radu,

My Oxygen is 17.0
The pdf transtype is PDF2

For the definition list format with oxygen, maybe there is something wrong with Oxygen. The output of definition list still does not a table with grid.

1) I tested the same doc with my colleages computers, the output on their computers was as same as mine.

2) I looked at the content of temp folder, and in the folder: ../temp/pdf/Configuration/OpenTopic/cfg/common/artwork. The icons in this folder copied from the webhelp plugin. Oxygen17/frameworks/dita/DITA-OT/plugins/com.oxygenxml.webhelp/oxygen-webhelp/resources/img.

3) I tried to transform the pdf with DITA-OT with the same transtype:pdf2, and the icons in /temp/pdf/Configuration/OpenTopic/cfg/common/artwork copied from the ...org.dita.pdf2/cfg/commom/artwork

I am not sure if my guessing is correct, could you take a deep look?

Thanks

Nikky

Re: definition list and parameter list format shown in PDF with Oxygen

Posted: Tue Apr 11, 2017 9:17 am
by Radu
Hi Nicky,

It's great that you told me your Oxygen version, I tested with the same version on my side.
There is a DITA OT plugin:

OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\plugins\net.sourceforge.dita4publishers.pdf-dl-as-dl

which interferes with the regular dl customization. You can look in its XSLTs to see what it's doing. You can probably remove that plugin and run the DITA OT integrator again in order to restore the default <dl> table behavior.

I'm not sure what your (2) and (3) points are about, is there a question that you forgot to ask us?

Regards,
Radu

Re: definition list and parameter list format shown in PDF with Oxygen

Posted: Wed Apr 12, 2017 12:14 pm
by Nikky_zhang
Hi , Radu

From which doc or code you know that the process goes to here:

OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\plugins\net.sourceforge.dita4publishers.pdf-dl-as-dl

?

for the 2) and 3), there is no problem now, so forget it.

Thanks

Nikky

Re: definition list and parameter list format shown in PDF with Oxygen

Posted: Wed Apr 12, 2017 12:33 pm
by Radu
Hi Nikky,

You can use Oxygen's Find/Replace in Files tool to search all occurrences of a template match in the entire DITA OT folder.
The plugin "net.sourceforge.dita4publishers.pdf-dl-as-dl" adds an XSLT custom stylesheet matching that particular element and all custom stylesheets added via plugins have greater importance than the XSLT stylesheets from the base PDF plugin.

Regards,
Radu