Condition in responsive web help build file
Posted: Wed Feb 12, 2025 7:20 pm
I need to add a condition to use publishing template based on a variable. Here is the current code currently in the responsive web help build file.
The variable is 'brand' and I want to change the value of 'template_location' based on the variable value.
An if/then statement is good, too. Basically:
if brand is X then <param name="template" value="${1}${2}templates${file.separator}location_x"/> .
if brand is Y then <param name="template" value="${1}${2}templates${file.separator}location_y"/> .
if brand is z then <param name="template" value="${1}${2}templates${file.separator}location_z"/> .
Ideas?
Code: Select all
<antcall target="dita2webhelp-responsive">
<param name="clean.output" value="no"/>
<param name="args.tablelink.style" value="TITLE"/>
<param name="template" value="${1}${2}templates${file.separator}template_location"/>
</antcall>
An if/then statement is good, too. Basically:
if brand is X then <param name="template" value="${1}${2}templates${file.separator}location_x"/> .
if brand is Y then <param name="template" value="${1}${2}templates${file.separator}location_y"/> .
if brand is z then <param name="template" value="${1}${2}templates${file.separator}location_z"/> .
Ideas?