How to render transformation parameter in PDF publication
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 316
- Joined: Wed Jun 17, 2015 10:19 am
How to render transformation parameter in PDF publication
Post by ann.jensen »
Hi,
I have a custom plugin for transforming my DITA project in Oxygen Author out to PDF.
I would like to pass the value of a custom parameter that I have added to the transformation scenario to my plugin and render it from front-matter.xsl.
I have tried all day but cannot figure out the declaring of variables and assigning of parameter values to them
any advice appreciated,
Regards,
Ann
I have a custom plugin for transforming my DITA project in Oxygen Author out to PDF.
I would like to pass the value of a custom parameter that I have added to the transformation scenario to my plugin and render it from front-matter.xsl.
I have tried all day but cannot figure out the declaring of variables and assigning of parameter values to them

any advice appreciated,
Regards,
Ann
-
- Posts: 316
- Joined: Wed Jun 17, 2015 10:19 am
Re: How to render transformation parameter in PDF publication
Post by ann.jensen »
Hi,
I got an answer to this which in brief is:
Update my plugin.xml with
Create insert-parameters.xml like this:
and in my xslt code where I want the param value displayed, I added need to have
I got an answer to this which in brief is:
Update my plugin.xml with
Code: Select all
<feature extension="dita.conductor.pdf2.param" file="insert-parameters.xml"/>
Code: Select all
<dummy>
<param name="clientparam" expression="${client}" if="client"/>
</dummy>
Code: Select all
<xsl:value-of select="$clientparam"/>
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: How to render transformation parameter in PDF publication
Just to update this thread, if someone is interested in seeing the structure of such a plugin, a sample plugin can be found here:
https://github.com/radu-pisoi/org.dita. ... .numbering
Regards,
Radu
https://github.com/radu-pisoi/org.dita. ... .numbering
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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