You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by gr...@apache.org on 2004/01/08 19:21:49 UTC
cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/cocoon/transformation DocumentIndexTransformer.java
gregor 2004/01/08 10:21:49
Modified: src/java/org/apache/lenya/cms/cocoon/transformation
DocumentIndexTransformer.java
Log:
element is now called children, was index. this fixes #593
Revision Changes Path
1.5 +5 -5 cocoon-lenya/src/java/org/apache/lenya/cms/cocoon/transformation/DocumentIndexTransformer.java
Index: DocumentIndexTransformer.java
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/cocoon/transformation/DocumentIndexTransformer.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- DocumentIndexTransformer.java 5 Nov 2003 14:01:52 -0000 1.4
+++ DocumentIndexTransformer.java 8 Jan 2004 18:21:49 -0000 1.5
@@ -82,14 +82,14 @@
import org.xml.sax.helpers.AttributesImpl;
/**
- * This transformer lists the children of a document if the tag <namespaceURI:index>
+ * This transformer lists the children of a document if the tag <namespaceURI:children>
* is present in this document. The list of the children is in the form :
- * <namespaceURI:index>
+ * <namespaceURI:children>
* <child href="....html>
* <ci:include src="..." element="included"/>
* </child>
* ...
- * </namespaceURI:index>
+ * </namespaceURI:children>
* Multiple language : if a child doesn't exist in the parent language, then the version
* in the default language will be considered. If it doesn't exist too, any other existent
* language will be considered.
@@ -101,7 +101,7 @@
private String namespace;
private String cIncludeNamespace;
- public static final String INDEX_ELEMENT = "index";
+ public static final String CHILDREN_ELEMENT = "children";
public static final String ABSTRACT_ATTRIBUTE = "abstract";
public static final String NAMESPACE = "http://apache.org/cocoon/lenya/documentindex/1.0";
@@ -157,7 +157,7 @@
if (uri != null
&& uri.equals(namespace)
&& cIncludeNamespace != null
- && localName.equals(INDEX_ELEMENT)) {
+ && localName.equals(CHILDREN_ELEMENT)) {
if (getLogger().isInfoEnabled()) {
getLogger().info("Inserting index");
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org