OpenWGA 5.4 - WebTML reference

WebTML tags

<tml:body>

Description :
This tag is only valid within an <tml:element> tag and defines the content to use for this element. The element implementation specifies how to use this content information and further might allow to iterate over the content.
Derived from: Only available in the following parent tags: Attributes:
show inherited attributes ...
Name Value(s) Purpose

Examples:
This example shows a use case of the element 'XSLT'. The element recieves its processing instructions via the <tml:body> tag and converts tags like <b>, <i> and <u> to XSLFO.

<tml:element name="XSLT">
    <tml:option name="xml">
            <tml:item name="body"/>
    </tml:option>
    <tml:body>
        <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
            <xsl:template match="b">
                <fo:inline font-weight="bold">
                <xsl:apply-templates/>
                </fo:inline>
            </xsl:template>
            <xsl:template match="i">
                 <fo:inline font-style="italic">
                 <xsl:apply-templates/>
                 </fo:inline>
            </xsl:template>
            <xsl:template match="u">
                  <fo:inline text-decoration="underline">
                  <xsl:apply-templates/>
                  </fo:inline>
            </xsl:template>
         </xsl:stylesheet>
    </tml:body>
</tml:element>