Generates an XML directory listing.
The root node of the generated document will normally be a
directory
node, and a directory node can contain zero
or more file
or directory
nodes. A file node has no
children. Each node will contain the following attributes:
- name : the name of the file or directory
- lastModified : the time the file was last modified, measured as the number of
milliseconds since the epoch (as in java.io.File.lastModified)
- date (optional) : the time the file was last modified in human-readable form
All generated elements have the namespace
http://apache.org/cocoon/directory/2.0
.
The root directory
node has the attribute requested
with the value true
.
- Name : directory
- Class: org.apache.cocoon.generation.DirectoryGenerator
- Cacheable: no.
 |  |  |
 |
<map:generate type="directory" src="the_directory"/>
|  |
 |  |  |