Class WbzApply

Object
   |
   +--WbzApply

class WbzApply

WbzApply can be used as wbz:apply-templates, wbz:call-template, wbz:for-each and wbz:apply-imports. The configuration of this component is according to the XSLT-Specifications of xsl:apply-templates, xsl:call-template, xsl:for-each and xsl:apply-imports.

You can use wbz:with-param with wbz:call-template and wbz:apply-templates. You can use wbz:sort with wbz:apply-templates and wbz:for-each.

Sample configuration for apply-templates :
    <wbz:apply-templates select="*"/>
Sample configuration for for-each :
    <wbz:for-each select="books">
      <wbz:sort select="@name"/>
      <wbz:value-of select="@name"/>
    </wbz:for-each>
Sample configuration for call-template:
    <wbz:call-template name="validateEmail">
      <wbz:with-param name="email" select="@email"/>
    </wbz:call-template>

When using wbz:for-each the context entry wobzilla.position is updated for every child-view to reflect the current possition in the loop. See ContextXPathResolver.


Requires:
wobzilla_viewFactory
wobzilla_componentFactory
wobzilla_variableFactory
wobzilla_sortFactory
wobzilla_xpath