org.infolayer.templates.elements
Class TE_outer

java.lang.Object
  extended byorg.kxml2.kdom.Element
      extended byorg.infolayer.templates.TemplateElement
          extended byorg.infolayer.templates.ParameterizedElement
              extended byorg.infolayer.templates.elements.TE_outer
All Implemented Interfaces:
Parameterized

public class TE_outer
extends ParameterizedElement

The <t:outer> element works similar to the <t:include> element, but the other way around: Like for <t:include>, the <t:outer> element is replaced by the contents of the file denoted by the file attribute. This file must contain an empty <t:inner /> element, which is replaced by the child elements of the <t:outer> element. For the child elements of outer, the original evaluation context is preserved, it is not influenced by processing the included file. <t:param> elements can be used to transfer parameters to the included file.

Attributes

file
Name of the file to be embedded between the outer element and its content.
expr
Use the evaluation result of the expression as context for the "outer" xml
template
Name of the template to be embedded between the outer element and its content.

Restrictions for Child Elements

If <t:param> child elements are present, they must precede any other content.

See Also:
Serialized Form

Constructor Summary
TE_outer()
           
 
Method Summary
 void apply(XmlSerializer xw, IlRequest context, Bindings bindings)
          Applies the template mechanism.
 void init()
           
 
Methods inherited from class org.infolayer.templates.ParameterizedElement
addParam, setParams
 
Methods inherited from class org.infolayer.templates.TemplateElement
applyChildren, assertNoChildren, assertNoChildren, getAttributeValue, getVarDefs, readTextContent, setVarDefs, writeAttributes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TE_outer

public TE_outer()
Method Detail

init

public void init()
Overrides:
init in class TemplateElement

apply

public void apply(XmlSerializer xw,
                  IlRequest context,
                  Bindings bindings)
           throws java.io.IOException
Description copied from class: TemplateElement
Applies the template mechanism. Must be overwritten in the

Overrides:
apply in class TemplateElement
Throws:
java.io.IOException