You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2001/10/10 11:28:41 UTC
cvs commit: xml-cocoon2/src/org/apache/cocoon/components/xpath JaxenProcessorImpl.java
cziegeler 01/10/10 02:28:41
Modified: src/org/apache/cocoon/components/xpath
JaxenProcessorImpl.java
Log:
JaxenProcessorImpl.java minor patch for compilation problems
Submitted by: Ovidiu Predescu [ovidiu@cup.hp.com]
Revision Changes Path
1.3 +15 -8 xml-cocoon2/src/org/apache/cocoon/components/xpath/JaxenProcessorImpl.java
Index: JaxenProcessorImpl.java
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/xpath/JaxenProcessorImpl.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- JaxenProcessorImpl.java 2001/10/08 20:03:16 1.2
+++ JaxenProcessorImpl.java 2001/10/10 09:28:41 1.3
@@ -7,11 +7,16 @@
*****************************************************************************/
package org.apache.cocoon.components.xpath;
-import org.apache.avalon.framework.component.Component;
-import org.apache.avalon.framework.logger.AbstractLoggable;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-
+import org.apache.avalon.framework.component.Component;
+
+import org.apache.avalon.framework.logger.AbstractLoggable;
+
+import org.w3c.dom.Node;
+
+import org.w3c.dom.NodeList;
+
+
+
import java.util.List;
/**
@@ -27,7 +32,7 @@
* </pre>
*
* @author <a href="mailto:dims@yahoo.com">Davanum Srinivas</a>
- * @version CVS $Revision: 1.2 $ $Date: 2001/10/08 20:03:16 $ $Author: bloritsch $
+ * @version CVS $Revision: 1.3 $ $Date: 2001/10/10 09:28:41 $ $Author: cziegeler $
*/
public class JaxenProcessorImpl
extends AbstractLoggable
@@ -48,8 +53,9 @@
XPath path = new XPath(str);
return (Node)path.selectSingleNode((Object)contextNode);
} catch (Exception e){
- return null;
+ // ignore it
}
+ return null;
}
/**
@@ -67,8 +73,9 @@
List list = path.selectNodes((Object)contextNode);
return new NodeListEx(list);
} catch (Exception e){
- return new NodeListEx();
+ // ignore it
}
+ return new NodeListEx();
}
class NodeListEx implements NodeList{
----------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org