File Generator
http://xml.apache.org/http://www.apache.org/http://www.w3.org/

Main
User Documentation

Generators
Overview

Default
File Generator

Core
HTML Generator
Directory Generator
Image Directory Generator
Fragment Extractor Generator
JSP Generator
Script Generator
Server Pages Generator
Velocity Generator
Request Generator
Status Generator
Stream Generator
Profile Generator
Error Generator
Search Generator

Optional
Php Generator
XML:DB Generator
XML:DB Collection Generator

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. -->
     
Copyright © 1999-2002 The Apache Software Foundation. All Rights Reserved.