Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 1359 invoked from network); 1 Jul 2008 15:02:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jul 2008 15:02:34 -0000 Received: (qmail 32862 invoked by uid 500); 1 Jul 2008 15:02:33 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 32791 invoked by uid 500); 1 Jul 2008 15:02:33 -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 32780 invoked by uid 99); 1 Jul 2008 15:02:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 08:02:33 -0700 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: local policy) Received: from [213.188.129.252] (HELO MTX4.mbn1.net) (213.188.129.252) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 01 Jul 2008 15:01:43 +0000 Message-ID: <486A471D.5080200@comsine.co.uk> Date: Tue, 1 Jul 2008 16:02:53 +0100 From: Andrew Chamberlain User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: "users@cocoon.apache.org" Subject: Passing a node-set from XSLT to Java References: <486519BE.8020107@comsine.co.uk> <2415.207.168.47.25.1214585293.squirrel@www.eccnet.com> <4868AC75.5CE9.00D4.0@csir.co.za> <4868C04B.8010507@comsine.co.uk> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi All, I'm trying to pass a tree fragment from XSLT to Java in the following way, and I'm not sure if the node-set is getting through correctly. The XML is: ... and the XSLT is: ... ... where the addGML method is: public String addGML(org.w3c.dom.Node myNode) { ... return (myNode.getNodeName()); } This gives the 'result' variable the value of "#text", but when I was expecting "gml:Polygon". Has anyone else managed to transfer a node-set to Java? If so, did you use xalan? Any tips would be greatly appreciated. Thanks, Andy --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org