Env About Example

The env.about viper always returns a datatable, so this example uses the format macro to display the information within a html table.

Smartsite SXML CopyCode image Copy Code
<se:format inputdata="{env.about()}" rem="render env.about datatable in an html table">
    <se:rowformat>
        <se:colformat><td>{this.field()}</td></se:colformat>
        <se:rowresult>{char.tab()}<tr>{this.rowresult()}</tr>{char.crlf()}</se:rowresult>
    </se:rowformat>

    <se:captionformat match="first">
        <se:colformat><th>{this.colname()}</th></se:colformat>
        <se:rowresult>{char.tab()}<tr>{this.rowresult()}</tr>{char.crlf()}</se:rowresult>
    </se:captionformat>

    <se:resultformat><table>{char.crlf()}{this.result()}</table></se:resultformat>
</se:format>
Example Result CopyCode image Copy Code
<table>
    <tr><th>Key</th><th>Value</th></tr>
    <tr><td>description</td><td>SXML-based publication runtime for Smartsite CMS</td></tr>
    <tr><td>product</td><td>Smartsite iXperion Publication Server</td></tr>
    <tr><td>copyright</td><td>Copyright © Smartsite Software B.V. 2006 - 2008</td></tr>
    <tr><td>company</td><td>Smartsite Software BV</td></tr>
    <tr><td>date</td><td>25-2-2008 0:06:06</td></tr>
</table>