Specialized Administration > Supporting Visualization and Publishing > WVS Publish Rules > Using Conditions in Publish Rules > Compatibility of the Publish Rules Elements
  
Compatibility of the Publish Rules Elements
You cannot use any of the newer <condition>/<if> or the <additional-files> elements with the older conditional elements (<epm-number>, <epm-iba>, <epm-type>, and <structure-type>) that you used for the previous condition evaluation. Publish rules files created using these older conditional elements continue to work as previously, but if you choose to use one of the newer elements, the “older” elements can no longer be used.
Migration — The following are some examples of how to move from the older conditional elements in a publish rules file to the newer ones:
Older:
<epm-number number="01-12345.PRT">
<publish on="checkin" />
</epm-number>
Newer:
<condition name="specific epm number">
<attribute name="epmdoc_number" value="01-12345.PRT" />
</condition>
<if condition="specific epm number">
<publish on="checkin" />
</if>
Older:
<epm-iba iba="MyIBA" value="true">
<publish on="checkin" />
</epm-iba>

Newer:
<condition name="iba with value">
<attribute name="epmdoc_MyIBA" value="true" />
</condition>
<if condition="iba with value">
<publish on="checkin" />
</if>
Older:
<epm-iba iba="MyIBA">
<publish on="checkin" />
</epm-iba>
Newer:
<condition name="iba without value">
<attribute name="epmdoc_MyIBA" />
</condition>
<if condition="iba without value">
<publish on="checkin" />
</if>
Older:
<epm-type type="EPMDocument">
<publish on="checkin" />
</epm-iba>
Newer:
<condition name="epm type">
<instace-of type="EPMDocument" />
</condition>
<if condition="epm type">
<publish on="checkin" />
</if>
Older:
<structure-type type="epm">
<publish on="checkin" />
</epm-iba>
Newer:
<condition name="structure type">
<structure type="epm" />
</condition>
<if condition="structure type">
<publish on="checkin" />
</if>