Generates an XML directory listing. This is an extension of
the Directory Generator.
It checks if the contained files are images and adds their size
to the attributes.
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
- width (optional) : the width of the image if it is an image file
- height (optional) : the height of the image if it is an image file
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 : imagedirectory
- Class: org.apache.cocoon.generation.ImageDirectoryGenerator
- Cacheable: no.
 |  |  |
 |
<map:generate type="imagedirectory" src="the_directory"/>
|  |
 |  |  |