[Contents] [Prev] [Next] [Index] [Report an Error]

Elements

SLAX elements are written with only the open tag. The contents of the tag appear immediately following the open tag. The contents can be either a simple expression or a more complex expression placed inside braces:

<top> {
<one>;
<two> {
<three>;
<four>;
<five> <six>;
}
}

The XSLT equivalent:

<top>
    <one/>
    <two>
        <three/>
        <four/>
        <five>
            <six/>
        </five>
    </two>
</top>

Using these nesting techniques and removing the close tag reduces clutter and increases code clarity.


[Contents] [Prev] [Next] [Index] [Report an Error]