Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 85666 invoked from network); 11 Feb 2009 08:44:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Feb 2009 08:44:44 -0000 Received: (qmail 88389 invoked by uid 500); 11 Feb 2009 08:44:44 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 87977 invoked by uid 500); 11 Feb 2009 08:44:43 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 87966 invoked by uid 99); 11 Feb 2009 08:44:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Feb 2009 00:44:43 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jukka.zitting@gmail.com designates 209.85.220.14 as permitted sender) Received: from [209.85.220.14] (HELO mail-fx0-f14.google.com) (209.85.220.14) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Feb 2009 08:44:36 +0000 Received: by fxm7 with SMTP id 7so184882fxm.19 for ; Wed, 11 Feb 2009 00:44:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=FBX/ksmKdiYBK11JD8pNBUAuxv/NlSVHU4TL9NKLa7Y=; b=AGnSKefyCSm3XDJeTCsupqXnUYNMyrNHDFtqHw+gtWm+/KySzqAiI6RmhV8ZUz+i61 P100J9LdMscjbbB0taO4NsOkDu2eawcutkj23w1tYa7bdn2wRqNEoW2yUQ4uIVh8ZgfC RU3xLAv2yOs8IOqF5E88PLA2bv1Tr50rwtWpE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=Jw2taBnrm8L9EInVEFtAYccpbt+1rj+vHtKUj8fVdAsLo33nGEGmyhxTt0mx+Ot5bl YgLjAggfr+BLLhEDs70pFEQnuxFNCtIVjA+LhiHmOEKTgj0UhtTQG5GdF/vUNQUE9d2Z iflmeDuZFlNZmzCfYn89wBkB8v8kSz0VcGJ8o= MIME-Version: 1.0 Received: by 10.181.193.15 with SMTP id v15mr2574525bkp.7.1234341576205; Wed, 11 Feb 2009 00:39:36 -0800 (PST) In-Reply-To: References: Date: Wed, 11 Feb 2009 09:39:36 +0100 Message-ID: <510143ac0902110039t7af432eep4ef4958227a495b4@mail.gmail.com> Subject: Re: custom xml import From: Jukka Zitting To: users@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, On Wed, Feb 11, 2009 at 8:55 AM, Torgeir Veimo wrote: > I have a small project where I'd like to import a fragment of an xml file, > and I have to use my own custom entity resolver. Ideally, I'd like to > specify which node to import using an xpath query. Have anyone done > something similar and have some code to share? The easiest approach to this is probably to apply an XSL transformation to the source XML before passing it to an import content handler. A JAXP Transformer should do the trick. BR, Jukka Zitting