Skip to content

Extension org.gramar.base Tag if

chrisgerken edited this page Sep 14, 2015 · 2 revisions

if Tag

The if tag Evaluates an XPath expression and processes the tag content if the value is true.

  • string test - (required) An XPath expression to be resolved as a boolean value. The contents of the if tag are processed only if the value is true.
  • string var - A variable name to be associated with the result of the XPath expression. Useful for "If a node exists then process it" behavior.

Usage and examples

Place a taglib element within <taglibs> element in the gramar.config file in the root of your gramar:

<taglibs>
    <taglib  prefix="c" extension="org.gramar.base" />
</taglibs>

Return to org.gramar.base

Clone this wiki locally