Generates a document from a session attribute.
Generates a document from a session attribute. The attribute may be a DOM
node, an XMLizable, or any other object, and is streamed using
the same rules as for <xsp:expr> in XSPs (see org.apache.cocoon.components.language.markup.xsp.XSPObjectHelper).
Name of the session attribute is specified using src attribute of the generate
tag, or, if no src tag present, using attr-name parameter.
This generator has 2 parameters:
attr-name : the session attribute name (mandatory if no src
attribute specified).
root-element (optional) : the name of the root element of the
produced document. This parameter is optional if the session attribute is
a DOM or an XMLizable.
setup(org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
Parameters par)
Setup the file generator :try to retrieve the session attribute given as sitemap parameter
Methods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandler
Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled