File Generator
The file generator reads an xml document from the local file system or from any url.
Therefore it could better be named url generator, but the name has historical reasons.
The file generator is the default generator.
-
Name : file
-
Class: org.apache.cocoon.generation.FileGenerator
-
Cacheable: yes - uses the last modification date of the xml document for validation.
The location of the source xml document is specified in
the pipeline by the src attribute.
 |  |  |
 |
<map:generate src="document.xml" type="file"/>
<!-- The type attribute can be omitted as it is the default generator. -->
|  |
 |  |  |
|