Get an @if is deprecated error for html5 transform

24 views
Skip to first unread message

Jonathan Hanna

unread,
Feb 5, 2020, 10:34:08 AM2/5/20
to DITA-OT Users
Hi all,

When trying to run an html5 transform using the default plugin, I get the following error multiple times:

file:/C:/dita-ot-3.4/plugins/org.dita.html5/build_dita2html5.xml:226:71: [DOTA014W][WARN] Attribute @if is deprecated. Use attribute @if:set instead.

My transform was successful, so I'm assuming this error message can be ignored. Even if the error message can be ignored, error messages are still unsettling to newbies :-). Is this issue normal? If not, what am I doing wrong?

Thanks,
Jonathan Hanna

Radu Coravu

unread,
Feb 6, 2020, 2:58:42 AM2/6/20
to Jonathan Hanna, DITA-OT Users
Hi Jonathan,

If you download a stock DITA OT 3.4 and look in the " plugins/org.dita.html5/build_dita2html5.xml " at line 226 there is no such construct there.
I'm assuming you installed additional plugins in your DITA OT and one of those plugins added extra parameters to the HTML5 build file.

Regards,
Radu

--
You received this message because you are subscribed to the Google Groups "DITA-OT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dita-ot-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/dita-ot-users/fdc1b8d1-598b-4486-95a9-3705dd840285%40googlegroups.com.

Jonathan Hanna

unread,
Feb 7, 2020, 11:22:54 AM2/7/20
to DITA-OT Users
Hi Radu,

You are correct in your assumption. I have installed additional plugins. I had no idea that other plugins could add parameters to the stock plugin build files!

I first noticed this error when using the org.doctales.reveal plugin, so I wonder if this is the source of the issue.

Jonathan

Joe Williams

unread,
Feb 7, 2020, 1:23:51 PM2/7/20
to DITA-OT Users
You can see the parameters it is added in the file, insertParameters.xml. I am using DITA-OT 3.3.4 and I only get that warning when using something like:
<params xmlns:if="ant:if">
<param name="xsltParam" expression="${ant.prop}" if="ant.prop"/>
</params>

If I remove the namespace attribute or changed @if to @if:set, the warning goes away. Not using 3.4 because of another issue, so not sure what the difference might be.
Reply all
Reply to author
Forward
0 new messages