cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gkossakow...@apache.org
Subject svn commit: r534392 - in /cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl: pom.xml src/main/java/org/apache/cocoon/components/source/util/SourceUtil.java
Date Wed, 02 May 2007 11:40:44 GMT
Author: gkossakowski
Date: Wed May  2 04:40:42 2007
New Revision: 534392

URL: http://svn.apache.org/viewvc?view=rev&rev=534392
Log:
Switiching from org.apache.excalibur.xml.sax.SAXParser to our own org.apache.cocoon.core.xml.SAXParser
interface.
See this discussion: http://thread.gmane.org/gmane.text.xml.cocoon.devel/72927

Modified:
    cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/pom.xml
    cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/src/main/java/org/apache/cocoon/components/source/util/SourceUtil.java

Modified: cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/pom.xml
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/pom.xml?view=diff&rev=534392&r1=534391&r2=534392
==============================================================================
--- cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/pom.xml (original)
+++ cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/pom.xml Wed May  2 04:40:42 2007
@@ -76,6 +76,10 @@
       <artifactId>cocoon-util</artifactId>
       
     </dependency>
+    <dependency>
+      <groupId>org.apache.cocoon</groupId>
+      <artifactId>cocoon-xml-api</artifactId>
+    </dependency>
     <!-- Excalibur -->
     <dependency>
       <groupId>org.apache.excalibur.components</groupId>

Modified: cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/src/main/java/org/apache/cocoon/components/source/util/SourceUtil.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/src/main/java/org/apache/cocoon/components/source/util/SourceUtil.java?view=diff&rev=534392&r1=534391&r2=534392
==============================================================================
--- cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/src/main/java/org/apache/cocoon/components/source/util/SourceUtil.java
(original)
+++ cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/src/main/java/org/apache/cocoon/components/source/util/SourceUtil.java
Wed May  2 04:40:42 2007
@@ -37,7 +37,7 @@
 import org.apache.excalibur.source.SourceNotFoundException;
 import org.apache.excalibur.source.SourceParameters;
 import org.apache.excalibur.source.SourceResolver;
-import org.apache.excalibur.xml.sax.SAXParser;
+import org.apache.cocoon.core.xml.SAXParser;
 import org.apache.excalibur.xml.sax.XMLizable;
 import org.apache.excalibur.xmlizer.XMLizer;
 import org.apache.regexp.RE;
@@ -234,7 +234,7 @@
 	    } else {
 	        SAXParser parser = null;
 	        try {
-	            parser = (SAXParser) manager.lookup(SAXParser.ROLE);
+	            parser = (SAXParser) manager.lookup(SAXParser.class.getName());
 	            parse(parser, source, handler);
 	        } catch (ServiceException e) {
 	            throw new ProcessingException("Exception during parsing source.", e);



Mime
View raw message