vte:attribute

attributes:
name [string] - name of the attribute to alter

Ads attribute with name and calculated value to direct ancestor tag. Value is trimmed before adding.

<div><vte:if test="{index} != 1">
<vte:attribute name="style">display:none;</vte:attribute>
</vte:if></div>

This will try to add style attribute to vte:if tag!!

Example:

<div>
    <vte:attribute name="style">
        <vte:if test="{index} != 1">display:none;</vte:if>
    </vte:attribute>
</div>