fmx:xescape

fmx:xescape can be used as a dedicated xml element or as an attribute.

It's a simple extension which allows to render xml structures using fmx templating wheres the rendered xml tags are being escaped.

Dedicated Xml Element

<fmx:xescape>
    <dependency>
         <groupId>umpalumpa</groupId>
         <scope fmx:depends="model.scope?has_content">${model.scope}</scope>
    </dependency>
</fmx:xescape>
&lt;dependency&gt;
     &lt;groupId&gt;umpalumpa&lt;/groupId&gt;
     [#if model.scope?has_content]
     &lt;scope&gt;${model.scope}&lt;/scope&gt;
     [/#if]
&lt;/dependency&gt;

As an attribute

If used as an attribute it must have the value true .

<dependency fmx:xescape="true">
    <groupId>umpalumpa</groupId>
    <scope fmx:depends="model.scope?has_content">${model.scope}</scope>
</dependency>
&lt;dependency&gt;
     &lt;groupId&gt;umpalumpa&lt;/groupId&gt;
     [#if model.scope?has_content]
     &lt;scope&gt;${model.scope}&lt;/scope&gt;
     [/#if]
&lt;/dependency&gt;