Return-Path:
Generates an XML directory listing.
- The root node of the generated document will normally be a
- All generated elements have the namespace
- The following parameter can be specified in the pipeline for
- the generate command:
- XML generated by directory generator uses namespace
- The current directory generator may generate following xml:
The error generator creates xml content describing an error condition.
- This generator is activated by the sitemap manager in case of an
- error condition.
-
- If a pipeline has defined an error handler, and an error occurs the
- sitemap manager activates an error generator, feeding the cause of
- the error into the error generator.
+ When an error occurs in a pipeline with a defined an error handler, the
+ sitemap manager activates the error generator, feeding it the cause of
+ the error.
- The error generator generates xml content, having
- namespace
- Usually the error condition is described by an throwable object.
+ Usually the error condition is described by a throwable object.
The information of this throwable object is used by the
- error generator producing the xml content.
- The various elements of the xml content:
+ error generator to produce the xml content.
+ The various elements of the xml content include the following.
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.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:
-
-
- http://apache.org/cocoon/directory/2.0
.
- The root directory
- node has the attribute requested
with the value true
.
-
-
-
-
-
- http://apache.org/cocoon/status/2.0
. The DTD
- of XML generated by directory generator:
-
http://apache.org/cocoon/error/2.0
, and
- prefix error
.
+ XML generated by error generator uses the
+ namespace http://apache.org/cocoon/error/2.0
and
+ the error
prefix.
1.1.2.2 +2 -2 xml-cocoon2/src/documentation/xdocs/userdocs/generators/file-generator.xml
Index: file-generator.xml
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/documentation/xdocs/userdocs/generators/file-generator.xml,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -r1.1.2.1 -r1.1.2.2
--- file-generator.xml 17 May 2002 05:03:09 -0000 1.1.2.1
+++ file-generator.xml 7 Jun 2002 19:59:47 -0000 1.1.2.2
@@ -14,7 +14,7 @@
notify
is the root element, having.
- attribute type
, and sender
.
+ The element notify
is the root element, having
+ attributes type
and sender
.
The attribute type
has fixed value error
.
The attribute sender
describes the sender of the
- error notification object, in the current implementation it has
+ error notification object. In the current implementation, it has
fixed value org.apache.cocoon.sitemap.ErrorNotifier
.
title
stores some title of this eror notification.
- In the current implementation it has fixed value Cocoon error
.
+ The element title
stores the title of the eror notification.
+ In the current implementation, it has fixed value Cocoon error
.
source
element stores the class name of the throwable object
of the error notification.
getMessage()
result
- of the throwable object of the error notification, and maybe empty.
+ The message
element stores the getMessage()
result
+ of the throwable object of the error notification, and may be empty.
toString()
result
+ The description
element stores the toString()
result
of the throwable object of the error notification.
extra
elements stores nested exceptions
of the throwable object of the error notification.
The file generator is the default generator.
- You can use an absolute filesystem pathname. See explanation of + You can use an absolute filesystem pathname. See the explanation of file: URLs
1.1.2.1 +10 -7 xml-cocoon2/src/documentation/xdocs/userdocs/generators/generators.xml Index: generators.xml =================================================================== RCS file: /home/cvs/xml-cocoon2/src/documentation/xdocs/userdocs/generators/generators.xml,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -u -r1.1 -r1.1.2.1 --- generators.xml 3 Jan 2002 12:31:04 -0000 1.1 +++ generators.xml 7 Jun 2002 19:59:47 -0000 1.1.2.1 @@ -9,19 +9,22 @@This document lists all available generators of Apache Cocoon and +
This document lists all of the available generators of Apache Cocoon and describes their purpose.
A generator is the starting point of an xml pipeline. It generates XML - content as SAX events and initialize the pipeline processing. - For more information on generators - see the sitemap. -
+A generator is the starting point of an xml pipeline. It generates XML content as SAX events and initializes pipeline processing. Every pipeline match containing a generator must be terminated by a serializer. +
++In the sitemap file, each generator has a unique name which is mapped to a java class. One generator name must be declared as the default generator. Each generator may have additional configuration information specified in child elements. +
++For conceptual information on generators see the user's guide document The Sitemap. +
The JSPEngine component of Tomcat's JSPEngine is implemented in JSPEngineImpl. If you want to use another JSPEngine component, you may specify it in a my.roles file. ---------------------------------------------------------------------- In case of troubles, e-mail: webmaster@xml.apache.org To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org For additional commands, e-mail: cocoon-cvs-help@xml.apache.org