HTML 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

HTML Generator

The html generator reads an html document from the local file system or from any url. It acts similar to the file generator with the difference that it reads html documents and converts them using jtidy to xhtml.

This generator is optional and requires the jtidy package in the lib directory when building Cocoon. However, the distribution includes this package already.

  • Name : html
  • Class: org.apache.cocoon.generation.HTMLGenerator
  • Cacheable: yes - uses the last modification date of the html document for validation.

The location of the source html document is specified in the pipeline by the src attribute.

   
  <map:generate src="document.html" type="html"/>
     
Copyright © 1999-2002 The Apache Software Foundation. All Rights Reserved.