jefft 2003/05/13 04:13:00
Modified: src/blocks/linkrewriter/java/org/apache/cocoon/transformation
LinkRewriterTransformer.java
Log:
Update javadocs to reflect that dynamic config now uses the same syntax as
static
Revision Changes Path
1.6 +13 -8
cocoon-2.1/src/blocks/linkrewriter/java/org/apache/cocoon/transformation/LinkRewriterTransformer.java
Index: LinkRewriterTransformer.java
===================================================================
RCS file:
/home/cvs/cocoon-2.1/src/blocks/linkrewriter/java/org/apache/cocoon/transformation/LinkRewriterTransformer.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- LinkRewriterTransformer.java 3 May 2003 11:22:55 -0000 1.5
+++ LinkRewriterTransformer.java 13 May 2003 11:13:00 -0000 1.6
@@ -99,9 +99,13 @@
* <pre>
* <map:transformer name="linkrewriter"
* src="org.apache.cocoon.transformation.LinkRewriterTransformer">
- * <input-module name="site" src="cocoon://samples/link/linkmap"
reloadable="true"/>
+ * <input-module name="site">
+ * <file src="cocoon://samples/link/linkmap" reloadable="true"/>
+ * </input-module>
* <input-module name="mapper">
- * <input-module name="site" src="{src}" reloadable="true"/>
+ * <input-module name="site">
+ * <file src="{src}" reloadable="true"/>
+ * </input-module>
* <prefix>/site/</prefix>
* <suffix>/@href</suffix>
* </input-module>
@@ -111,11 +115,9 @@
* 'site' (an [EMAIL PROTECTED]
org.apache.cocoon.components.modules.input.XMLFileModule}
* and 'mapper' (A [EMAIL PROTECTED]
* org.apache.cocoon.components.modules.input.SimpleMappingMetaModule}. All
- * other InputModules will use their static configs. Note that the dynamic
- * config syntax different to the static config syntax (attributes instead of
- * elements). Note also that, when configuring a Meta InputModule like
- * 'mapper', we need to also configure the 'inner' module (here, 'site')
with a
- * nested <input-module>.
+ * other InputModules will use their static configs. Note that, when
+ * configuring a Meta InputModule like 'mapper', we need to also configure
the
+ * 'inner' module (here, 'site') with a nested <input-module>.
* <p>
* There is one further twist; to have <em>really</em> dynamic configuration,
* we need information available only when the transformer actually runs.
This
@@ -147,6 +149,9 @@
* <map:parameter name="prefix" value="/site/"/>
* </pre>
* in the map:transform
+ * <p>
+ * A live example of LinkRewriterTransformer can be found in the <a
+ * href="http://xml.apache.org/forrest/">Apache Forrest</a> sitemap.
* <p>
*
* <h3>Configuration</h3>