forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r109949 - /forrest/trunk/main/java/org/apache/cocoon/transformation/XPathTransformer.java
Date Mon, 06 Dec 2004 04:17:30 GMT
Author: antonio
Date: Sun Dec  5 20:17:30 2004
New Revision: 109949

URL: http://svn.apache.org/viewcvs?view=rev&rev=109949
Log:
Access directly the static field
Modified:
   forrest/trunk/main/java/org/apache/cocoon/transformation/XPathTransformer.java

Modified: forrest/trunk/main/java/org/apache/cocoon/transformation/XPathTransformer.java
Url: http://svn.apache.org/viewcvs/forrest/trunk/main/java/org/apache/cocoon/transformation/XPathTransformer.java?view=diff&rev=109949&p1=forrest/trunk/main/java/org/apache/cocoon/transformation/XPathTransformer.java&r1=109948&p2=forrest/trunk/main/java/org/apache/cocoon/transformation/XPathTransformer.java&r2=109949
==============================================================================
--- forrest/trunk/main/java/org/apache/cocoon/transformation/XPathTransformer.java	(original)
+++ forrest/trunk/main/java/org/apache/cocoon/transformation/XPathTransformer.java	Sun Dec
 5 20:17:30 2004
@@ -237,7 +237,7 @@
      * (or <code>xmlns:prefix</code>) attribute added to define the node's namespace.
      */
     private void copyNamespaceDeclarations(final Node oldNode, Node newNode) {
-      if (newNode.getNodeType() == Document.ELEMENT_NODE) {
+      if (newNode.getNodeType() == Node.ELEMENT_NODE) {
         String prefix = oldNode.getPrefix();
         String nsURI = oldNode.getNamespaceURI();
         Element newElem = (Element)newNode;

Mime
View raw message