Using LocalId and the scope keyword.

In this example, the LocalId 'test' is used in the formatting vipers to prevent having to change the viper calls everytime a nesting level is added.

Smartsite SXML CopyCode image Copy Code
<se:xlinks localid="test" parent="sampledata">
    <se:parameters>
        <se:parameter name="format">
            <se:rowformat>
                <se:text>
                    <se:text>
                        <se:text>
                            <li>{scope.test.field(title)}</li>
                        </se:text>
                    </se:text>
                </se:text>
            </se:rowformat>
        </se:parameter>
        <se:parameter name="resultformat">
            <ul>{this.result()}</ul>
        </se:parameter>
    </se:parameters>
</se:xlinks>