The cx:element creates a complete HTML or XML tag (opening tag, and closing tag). The name of the tag to be created is determined by the tag attribute. The names and values of the created tag are specified by using the cx:parameter element.

Example 1

<cx:element tag="td">

 <cx:parameter name="bgcolor" value="#CCCCCC"/>

 <cx:parameter name="align" value="left"/>

 Hello!

</cx:element>

Result

<td bgcolor="#CCCCCC" align="left">Hello!</td>

 

Example 2

<cx:element tag="a">

 <cx:parameter name="href" value="http://www.example.com"/>

 www.example.com

</cx:element>

Result

<a href="http://www.example.com">www.example.com</a>

Attributes

The following table contains all attributes available with the cx:element element. Obligatory attributes are printed bold.

 

Did this answer your question?