definition list and parameter list format shown in PDF with Oxygen
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 18
- Joined: Thu Jan 21, 2016 10:28 am
definition list and parameter list format shown in PDF with Oxygen
Post 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
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
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: definition list and parameter list format shown in PDF with Oxygen
Hi Nicky,
Regards,
Radu
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 output looks like as below:
Zhang
zhang
which .xsl controls the definition list ?
Yes, so the template above will match parml.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']"
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 18
- Joined: Thu Jan 21, 2016 10:28 am
Re: definition list and parameter list format shown in PDF with Oxygen
Post 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
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
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: definition list and parameter list format shown in PDF with Oxygen
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
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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 18
- Joined: Thu Jan 21, 2016 10:28 am
Re: definition list and parameter list format shown in PDF with Oxygen
Post 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
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
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: definition list and parameter list format shown in PDF with Oxygen
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
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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
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