stephan 2002/08/19 01:06:23
Modified: src/scratchpad/src/org/apache/cocoon/generation
SourceDescriptionGenerator.java
Log:
Delete obsolete parts.
Revision Changes Path
1.10 +7 -16
xml-cocoon2/src/scratchpad/src/org/apache/cocoon/generation/SourceDescriptionGenerator.java
Index: SourceDescriptionGenerator.java
===================================================================
RCS file:
/home/cvs/xml-cocoon2/src/scratchpad/src/org/apache/cocoon/generation/SourceDescriptionGenerator.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- SourceDescriptionGenerator.java 5 Aug 2002 09:05:43 -0000 1.9
+++ SourceDescriptionGenerator.java 19 Aug 2002 08:06:23 -0000 1.10
@@ -97,8 +97,8 @@
import java.util.Stack;
/**
- * Generates an source description from a source of a repository.
- * The generator is a combination of a DirectoryGenerator and a Generator
+ * Generates a description from a source of a repository.
+ * The generator is a combination of a DirectoryGenerator and a generator
* for retrieving SourceProperties, SourcePermission etc.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Stephan Michels</a>
@@ -322,12 +322,8 @@
parent);
}
- /*if (isCollection)
- this.contentHandler.startElement(SOURCE_NS, COLLECTION_NODE_NAME,
-
SOURCE_PREFIX+":"+COLLECTION_NODE_NAME, attributes);
- else*/
- this.contentHandler.startElement(SOURCE_NS, SOURCE_NODE_NAME,
-
SOURCE_PREFIX+":"+SOURCE_NODE_NAME, attributes);
+ this.contentHandler.startElement(SOURCE_NS, SOURCE_NODE_NAME,
+ SOURCE_PREFIX+":"+SOURCE_NODE_NAME,
attributes);
if (source instanceof InspectableSource)
pushLiveSourceProperties((InspectableSource)source);
@@ -360,12 +356,8 @@
SOURCE_PREFIX+":"+SOURCE_NODE_NAME);
}
- /*if (isCollection)
- this.contentHandler.endElement(SOURCE_NS, COLLECTION_NODE_NAME,
-
SOURCE_PREFIX+":"+COLLECTION_NODE_NAME);
- else*/
- this.contentHandler.endElement(SOURCE_NS, SOURCE_NODE_NAME,
- SOURCE_PREFIX+":"+SOURCE_NODE_NAME);
+ this.contentHandler.endElement(SOURCE_NS, SOURCE_NODE_NAME,
+ SOURCE_PREFIX+":"+SOURCE_NODE_NAME);
} catch (SAXException saxe) {
throw saxe;
@@ -389,7 +381,6 @@
property = properties[i];
this.contentHandler.startPrefixMapping("", property.getNamespace());
- //property.toSAX(new EmbeddedXMLPipe(this.contentHandler));
property.toSAX(consumer);
this.contentHandler.endPrefixMapping("");
}
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]