From c-users-return-4313-apmail-xalan-c-users-archive=xalan.apache.org@xalan.apache.org Wed Oct 17 06:21:03 2012 Return-Path: X-Original-To: apmail-xalan-c-users-archive@www.apache.org Delivered-To: apmail-xalan-c-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 7E061D225 for ; Wed, 17 Oct 2012 06:21:03 +0000 (UTC) Received: (qmail 34880 invoked by uid 500); 17 Oct 2012 06:21:03 -0000 Delivered-To: apmail-xalan-c-users-archive@xalan.apache.org Received: (qmail 34671 invoked by uid 500); 17 Oct 2012 06:21:00 -0000 Mailing-List: contact c-users-help@xalan.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: c-users@xalan.apache.org Delivered-To: mailing list c-users@xalan.apache.org Received: (qmail 34635 invoked by uid 99); 17 Oct 2012 06:20:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Oct 2012 06:20:59 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [64.255.237.171] (HELO smtp1.pacifier.net) (64.255.237.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Oct 2012 06:20:50 +0000 Received: from webmail.iinet.com (web03-proaxis.pacifier.net [64.255.238.33]) by smtp1.pacifier.net (Postfix) with ESMTP id B609B2CA28 for ; Tue, 16 Oct 2012 23:20:30 -0700 (PDT) Received: from 67.150.171.182 (SquirrelMail authenticated user shathawa@e-z.net) by webmail.iinet.com with HTTP; Tue, 16 Oct 2012 23:20:30 -0700 (PDT) Message-ID: <63515.67.150.171.182.1350454830.squirrel@webmail.iinet.com> In-Reply-To: <507E3D5C.3060800@e-z.net> References: <507E3D5C.3060800@e-z.net> Date: Tue, 16 Oct 2012 23:20:30 -0700 (PDT) Subject: Re: The function local-name was not found From: shathawa@e-z.net To: c-users@xalan.apache.org User-Agent: SquirrelMail/1.4.6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Checked: Checked by ClamAV on apache.org > On 10/15/2012 4:51 AM, Sven Thomke wrote: >> Hello, I'm writing a server application which parses XML and im using >> XalanC 1.10 to transform the incoming XML to a desired format. What is >> currently bugging me is that it seems like the function "local-name" >> does not seem to be implemented. After a failed transformation i check >> the latest error with "transformer.getLastError()" and this is the >> error i get: >> >> /XPathParserException: The function '{local-name' was not found./ >> /expression = '{local-name()}' Remaining tokens are: ('{local-name' >> '(' ')' '}') ([PATH TO XSL-FILE], line 30, column 45)/ >> >> Is it simply so that i can't use local-name with XalanC or am i doing >> something wrong?!?!?!? >> >> Glad for any sort of answer :) >> //Sven > > Sven, > > Since I don't know your code, my comments may not solve your problem. > > The XPath Function "local-name" function is declared as a member of class > XPathProcessorImpl using header file XPathProcessorImpl.hpp and defined > in the companion XPathProcessorImpl.cpp. > > Have you initialized your XPath processor? > > If you are using the XalanTransformer, then its initializer should > automatically initialize the XPath interpreter. > > Our current website is: http://xalan.apache.org/xalan-c > > Sincerely, > Steven J. Hathaway > Xalan Documentation Project > > I also see that "XPath/XPathFunctinTable.cpp" has function "local-name" set to an undefined function stub. This may be part of your problem. But if you implementation uses "XPath/ProcessorImpl" then the "local-name" is defined and should be usable. Sincerely, Steven J. Hathaway