Return-Path: Delivered-To: apmail-forrest-svn-archive@www.apache.org Received: (qmail 57421 invoked from network); 6 Dec 2004 04:17:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 6 Dec 2004 04:17:35 -0000 Received: (qmail 83258 invoked by uid 500); 6 Dec 2004 04:17:34 -0000 Delivered-To: apmail-forrest-svn-archive@forrest.apache.org Received: (qmail 83211 invoked by uid 500); 6 Dec 2004 04:17:34 -0000 Mailing-List: contact svn-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: "Forrest Developers List" Delivered-To: mailing list svn@forrest.apache.org Received: (qmail 83194 invoked by uid 99); 6 Dec 2004 04:17:34 -0000 X-ASF-Spam-Status: No, hits=-10.0 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Sun, 05 Dec 2004 20:17:32 -0800 Received: (qmail 57379 invoked by uid 65534); 6 Dec 2004 04:17:30 -0000 Date: 6 Dec 2004 04:17:30 -0000 Message-ID: <20041206041730.57372.qmail@minotaur.apache.org> From: antonio@apache.org To: svn@forrest.apache.org Subject: svn commit: r109949 - /forrest/trunk/main/java/org/apache/cocoon/transformation/XPathTransformer.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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 xmlns:prefix) 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;