Parent Directory | Revision Log | Patch
--- cocoon/trunk/src/java/org/apache/cocoon/sitemap/DefaultContentAggregator.java 2005/04/26 16:42:48 164814 +++ cocoon/trunk/src/java/org/apache/cocoon/sitemap/DefaultContentAggregator.java 2005/04/26 16:43:13 164815 @@ -27,6 +27,7 @@ import org.apache.cocoon.environment.Sou import org.apache.cocoon.generation.Generator; import org.apache.cocoon.xml.ContentHandlerWrapper; import org.apache.cocoon.xml.XMLConsumer; +import org.apache.cocoon.xml.XMLUtils; import org.apache.commons.lang.BooleanUtils; import org.apache.excalibur.source.Source; @@ -35,7 +36,6 @@ import org.apache.excalibur.source.Sourc import org.apache.excalibur.source.impl.validity.AggregatedValidity; import org.xml.sax.Attributes; import org.xml.sax.SAXException; -import org.xml.sax.helpers.AttributesImpl; import java.io.IOException; import java.io.Serializable; @@ -51,10 +51,9 @@ import java.util.Map; * @author <a href="mailto:cziegeler@apache.org">Carsten Ziegeler</a> * @version $Id$ */ -public class DefaultContentAggregator - extends ContentHandlerWrapper - implements Generator, CacheableProcessingComponent, Serviceable, - ContentAggregator { +public class DefaultContentAggregator extends ContentHandlerWrapper + implements Generator, CacheableProcessingComponent, + Serviceable, ContentAggregator { /** The root element of the aggregated content */ protected Element rootElement; @@ -62,9 +61,6 @@ public class DefaultContentAggregator /** The aggregated parts */ protected ArrayList parts = new ArrayList(); - /** Empty attributes */ - private static final Attributes EMPTY_ATTRS = new AttributesImpl(); - /** Indicates the position in the stack of the root element of the aggregated content */ private int rootElementIndex; @@ -311,7 +307,7 @@ public class DefaultContentAggregator if (!element.namespace.equals("")) { this.contentHandler.startPrefixMapping(element.prefix, element.namespace); } - this.contentHandler.startElement(element.namespace, element.name, qname, EMPTY_ATTRS); + this.contentHandler.startElement(element.namespace, element.name, qname, XMLUtils.EMPTY_ATTRIBUTES); } /**
infrastructure at apache.org | ViewVC Help |
Powered by ViewVC 1.1.26 |