SXML Stack Example

The Smartsite iXperion Publication engine works with linear stack based recursion. The actual stack can be visualized when errors occur, using error pages, and in the TestSuite debugger, but you can even use the SXML to show the SXML stack at any given point.

Smartsite SXML CopyCode image Copy Code
<se:format inputdata="{sxml.stack()}">
    <se:resultformat>
        <table><thead><th>Source</th><th>Instruction</th></thead><tbody>{this.result()}</tbody></table>
    </se:resultformat>
    <se:rowformat>
        <tr>
            <td>
                <a href="cms://{this.field('sourcenumber')}">
                    {this.field('sourcename')}
                </a>
            </td>
            <td>
                {debug.write(this.field('instruction'))}
            </td>
        </tr>
    </se:rowformat>
</se:format>