Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 40319 invoked from network); 20 Mar 2006 18:40:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Mar 2006 18:40:54 -0000 Received: (qmail 21089 invoked by uid 500); 20 Mar 2006 18:40:50 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 20831 invoked by uid 500); 20 Mar 2006 18:40:49 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 20820 invoked by uid 99); 20 Mar 2006 18:40:49 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Mar 2006 10:40:49 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [69.17.117.4] (HELO mail2.sea5.speakeasy.net) (69.17.117.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Mar 2006 10:40:48 -0800 Received: (qmail 24559 invoked from network); 20 Mar 2006 18:40:26 -0000 Received: from zelda.ardvaark.net (HELO [192.168.1.106]) (ardvaark@[66.93.101.211]) (envelope-sender ) by mail2.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 20 Mar 2006 18:40:26 -0000 Message-ID: <441EF70B.30507@procrastinators.org> Date: Mon, 20 Mar 2006 13:40:11 -0500 From: Brian Vargas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051201 Thunderbird/1.5 Mnenhy/0.7.3.0 MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: xpatch fails (removal) References: <8D8D5C193740B04894FA6AA9F767A4E5015F28B9@tlrchbermbx01.ERF.THOMSON.COM> In-Reply-To: <8D8D5C193740B04894FA6AA9F767A4E5015F28B9@tlrchbermbx01.ERF.THOMSON.COM> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N -----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 Fernando, I'm pretty sure that's because the remove attribute is executed external to any context that may be provided by the xpath attribute. Thus, current() is not defined, and you get a NullPointerException. If you replicate the xpath attribute value in the remove attribute, it should work as you expect. Brian Fernando.Matomira@thomson.com wrote: > I am trying to get rid of the home directory mapping in the sitemap. > I've tried the following patch, but all I get is a NullPointerException > > > xpath="/sitemap/pipelines/pipeline/match[@pattern='~*/**']" > remove="current()" > /> > > Thanks > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (MingW32) Comment: What is this? http://pgp.ardvaark.net iD8DBQFEHvcL3YdPnMKx1eMRAzugAKCDyJSzcN/6BH7nRtY2PQgIQhZnfACeJbx9 QGEWAjJY76CiH6hKPJCrKdY= =TWB9 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org