omit-tag instruction

If the expression evaluates to TRUE, replace the element by its content. If the expression is FALSE, remove the element.

Syntax

<tag gwc:omit-tag="expression"...> 
...
</tag> 
Note:
  1. expression is any valid expression

Example

<div gwc:content="formfield[edt1]/value" gwc:omit-tag="true"></div>

This displays the value of the form field "edt1" and removes the DIV tag.