org.infolayer.templates.elements
Class TE_outer
java.lang.Object
org.kxml2.kdom.Element
org.infolayer.templates.TemplateElement
org.infolayer.templates.ParameterizedElement
org.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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TE_outer
public TE_outer()
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