OpenWGA 7.6 - WebTML reference

WebTML tags » range

<tml:range wraphtmtag ="htmltag">

Purpose:

Wraps the contents of the range into a HTML tag of the given name.

Description:

wraphtmtag="tagname" will wrap the contents of the range into a HTML tag of the given name. Attributes "html_*" may be specified to add attributes to that HTML tag.

wrapif="boolean-item-condition": If also present, controls if the wrap is to be performed. If the boolean item condition is false the HTML tag will not be put out.

A short syntax was introduced:

<tml:{tagname}/> equals <tml:range wraphtmltag="tagname"/>

Examples:

<tml:{a} wrapif="<condition>" html_href="http://www.yahoo.de">
    Hello!
</tml:{a}>


If the wrapif condition is true this puts out:

<a href="http://www.yahoo.de">Hello!</a>


If it is false it puts out:

Hello!