How to display the build date in WebHelp Classic?
Posted: Fri Mar 30, 2018 6:59 pm
I'm using WebHelp Classic and want to display the build date (the date the transformation was run) in the html output.
I tried doing the following:
1) On the Transformation Parameters dialog, click New, then enter the parameter name (args.sysdate) and value (${date(yyyy-MM-dd)}).
2) In the ...DITA-templates\frameworks\dita\DITA-OT2.x\plugins\com.oxygenxml.webhelp.classic\plugin_commons.xml file, define the new parameter,
e.g. <param name="args.sysdate"
desc="The system date of the build"
type="string"/>
3) In the dita source file, try <parmname>args.sysdate</parmname> and variations on that. I tried using a dollar sign and curly braces, etc.
4) All I get in the output is some literal string from the dita file, such as "args.sysdate"
How can I render the build date in the transformation output in the easiest way possible?
Thank you in advance.
I tried doing the following:
1) On the Transformation Parameters dialog, click New, then enter the parameter name (args.sysdate) and value (${date(yyyy-MM-dd)}).
2) In the ...DITA-templates\frameworks\dita\DITA-OT2.x\plugins\com.oxygenxml.webhelp.classic\plugin_commons.xml file, define the new parameter,
e.g. <param name="args.sysdate"
desc="The system date of the build"
type="string"/>
3) In the dita source file, try <parmname>args.sysdate</parmname> and variations on that. I tried using a dollar sign and curly braces, etc.
4) All I get in the output is some literal string from the dita file, such as "args.sysdate"
How can I render the build date in the transformation output in the easiest way possible?
Thank you in advance.