|
MoreMotion Web Designer has powerful features to develop sophisticated XSLT style sheets easily.
BINDING PROPERTIES TO XML NODES
Any property of any element can be bind to an XML node using $vof() function.
$vof(/employee/name)
ASSIGNING VALUES CONDITONALLY
Values can be assigned conditionally to the properties of element using $vof() function.
For example the background color of a panel can be defined as follows:
$vof(position() mod 2 = 0 ? 'silver' ; 'gray')
and it will be translated into:
<xsl:attribute name="style"> background-color:
<xsl:choose>
<xsl:when test="position() mod 2 = 0">silver</xsl:when>
<xsl:otherwise>gray</xsl:otherwise>
</xsl:choose>;
</xsl:attribute>
FILLING COMBO BOXES
Combo boxes or List boxes can be filled dynamically with simple definitions as in the example below:
For Each: /customers/customer
Value : id
Option : name
Sort : name
It will be translated into:
<select>
<xsl:for-each select="/root/customers/customer">
<xsl:sort select="name"/>
<option>
<xsl:attribute name="value">
<xsl:value-of select="id"/>
</xsl:attribute>
<xsl:value-of select="name"/>
</option>
</xsl:for-each>
</select>
REPEATING PANELS
You can group elements with panels and repeat them horizontally or vertically along with sorted XML nodes. The repeating panels can contain nested panels and you can define and pass XSL parameters to them.
GENERATING ELEMENTS CONDITIONALLY
By defining XSL expressions in "Display If" property of the elements you can conditionally display or hide the elements on a page.
CONDITIONAL PANELS
By using conditional panels you can define unlimited number of conditions for the same area on a page. You can easily manage the conditions with add, copy, delete of change order commands on the conditional panel dialog.
Additionally you can trace and manage the conditions easily using the project explorer.
XSL PROPERTY OF ELEMENTS
Each element has an XSL Property that enables you to use native XSL code for your complex needs.
XSL TEMPLATES
You can easily link an external XSL template file or use embedded XSL templates that can be edited with an integrated XML editor.
|