Customizing WebHelp output using args.create.main.files.xsl

Post here questions and problems related to editing and publishing DITA content.
jlowther
Posts: 9
Joined: Thu Jun 16, 2016 9:01 pm

Customizing WebHelp output using args.create.main.files.xsl

Post by jlowther »

I need to create custom WebHelp output.

I am using oXygen XML Editor 18.0 on Windows.

In order to do this, I tried the following:
1. Created a new transformation scenario based on 'DITA map WebHelp Classic'
2. Added the args.create.main.files.xsl parameter and specified my customized processing, i.e., plugins/com.oxygen.webhelp/xsl/createMainFiles_custom.xsl.

However, when I try to build output using the above scenario, I get several errors, e.g., "No template exists named getLowerCaseLang".

When I look at the output log, I see the following:
Override ignored for property "args.create.main.files.xsl"

I notice also, that when I specify the default 'createMainFiles.xsl' file that is shipped with the framework, I get the same errors.

Does oXygen support customizing WebHelp output using the args.create.main.files.xsl parameter? If not, how can I specify custom xsl processing without creating a new transtype?

Thank you.
radu_pisoi
Posts: 404
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

Re: Customizing WebHelp output using args.create.main.files.xsl

Post by radu_pisoi »

Hi,

Unfortunately, the Webhelp plugin does not support DITA-OT XSLT import extension points:
http://www.dita-ot.org/2.3/dev_ref/plug ... mport.html

This would be the correct solution to customize the output generated from XSLT stylesheets. We have already registered an issue for this improvement and I will add your vote for it.

An workaround for this issue is the solution you already found, to duplicate the original XSLT and to modify it according with your requests.
The problem in your case is that you don't duplicate the correct file, for DITA you should duplicate the 'createMainFiles.xsl file' from 'xsl/dita' folder:

Code: Select all

oXygen/frameworks/dita/DITA-OT2.x/plugins/com.oxygenxml.webhelp/xsl/dita/createMainFiles.xsl
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply