Open the menu

    Namespace EL

    As a standard, every Layout File has this namespace declared allowing the use of ELs (Expression Language) in HTML. The customization of this configuration can be done by configuring the namespace xmlns:el="http://www.lumis.com.br/lumisportal/xsd/layoutfile/el" in the first element of the file.

    Tags

    The el:out tag replaces its example HTML with the result of the el defined in the value attribute.

    The el:out tag also has the attributes:

    • escapeXml: indicates whether the evaluated value should be escaped. This attribute is optional and its default value is true.
    • default: indicates the value to be used if the evaluation result returns null or an empty string.

    Attributes

    Any HTML attribute can be transformed by a result of an EL by adding the namespace prefix to the attribute name. The attribute without the namespace can be maintained to allow for reading the file offline, facilitating the prototyping of HTML.

    Resources available for the EL of LayoutFile

    The EL of Layout File can use the resources (variables and functions) defined in the Layout File scope described in Resources available in EL.

    Below is an example of translation using the localize function available: