Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C17B0EEAB for ; Wed, 13 Feb 2013 14:51:30 +0000 (UTC) Received: (qmail 25551 invoked by uid 500); 13 Feb 2013 14:51:29 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 25465 invoked by uid 500); 13 Feb 2013 14:51:29 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 25438 invoked by uid 99); 13 Feb 2013 14:51:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Feb 2013 14:51:29 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.236.26 is neither permitted nor denied by domain of martin.samm@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Feb 2013 14:51:23 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1U5dfr-00070H-5K for users@camel.apache.org; Wed, 13 Feb 2013 06:51:03 -0800 Date: Wed, 13 Feb 2013 06:51:03 -0800 (PST) From: sammm To: users@camel.apache.org Message-ID: <1360767063140-5727513.post@n5.nabble.com> In-Reply-To: References: <1360764261456-5727501.post@n5.nabble.com> <1360764373926-5727502.post@n5.nabble.com> Subject: Re: Dynamic XSL source - with 2.8.6 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Claus, thanks for that - i'd seen it and hoped it would do what i wanted but if errored in use. If i do this: concat('META-INF/xsl/',local-name(/*[local-name(.)='Envelope']/*[local-name(.)='Body']/*),'.xsl') When i run the route (using 'camel:run' with maven) i get a BeanDefinitionStoreException: Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [c:\dev\Workspaces\camel-rxservices\target\classes\META-INF\spring\camel-context.xml]; nested exception is java.lang.NullPointerException at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412) i.e. its erroring as it's trying to replace the header ref - is there a way to do this in XML config or does it need to be dne via Java DSL? Thanks Martin -- View this message in context: http://camel.465427.n5.nabble.com/Dynamic-XSL-source-with-2-8-6-tp5727501p5727513.html Sent from the Camel - Users mailing list archive at Nabble.com.