One of the Cocoon BuiltInLogicsheets. More documentation can be found from the logicsheet itself in the Cocoon build directory: cocoon-2.1.10\build\cocoon\blocks\xsp\dest\org\apache\cocoon\components\language\markup\xsp\java\util.xsl.
The XSP Util Logicsheet provides the following inclusion functionality:
- Content from another URL.
- Content directly from a file (requires absolute path?)
- Content from an expression
- Content of a file, as text (rather than XML)
It also provides tags to get:
- The time, in a custom format
- A general counter
- A session based counter?
Small usage example example (output result String as XML instead of encoded format:
<?xml version="1.0"?>
<xsp:page language="java"
xmlns:xsp="http://apache.org/xsp"
xmlns:xsp-request="http://apache.org/xsp/request/2.0"
xmlns:util="http://apache.org/xsp/util/2.0">
...
<page>
<xsp:logic>
...
<util:include-expr><util:expr>result</util:expr></util:include-expr>
...
</xsp:logic>
</page>
</xsp:page>