Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 31899 invoked from network); 9 Feb 2005 18:05:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Feb 2005 18:05:00 -0000 Received: (qmail 6539 invoked by uid 500); 9 Feb 2005 18:04:57 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 6454 invoked by uid 500); 9 Feb 2005 18:04:57 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 6433 invoked by uid 99); 9 Feb 2005 18:04:57 -0000 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_20_30,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from relay2.ptc.com (HELO relay2.ptc.com) (12.11.148.122) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 09 Feb 2005 10:04:55 -0800 Received: from hq-exfe2.ptcnet.ptc.com (132.253.201.63) by relay2.ptc.com with ESMTP; 09 Feb 2005 13:05:43 -0500 X-IronPort-AV: i="3.88,190,1102309200"; d="scan'208,217"; a="9381261:sNHT21111124" Received: from [132.253.10.191] ([132.253.10.191]) by HQ-EXFE2.ptcnet.ptc.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 9 Feb 2005 13:04:49 -0500 Message-ID: <420A50C4.5060306@ptc.com> Date: Wed, 09 Feb 2005 12:04:52 -0600 From: Jess Holle User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jakarta Commons Developers List Subject: Re: [jxpath] Future of JXPath and DOM??? References: <20050209041833.90547.qmail@web30501.mail.mud.yahoo.com> In-Reply-To: <20050209041833.90547.qmail@web30501.mail.mud.yahoo.com> Content-Type: multipart/alternative; boundary="------------080306060908050102060503" X-OriginalArrivalTime: 09 Feb 2005 18:04:50.0043 (UTC) FILETIME=[D8EF1CB0:01C50ED1] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --------------080306060908050102060503 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Dmitri Plotnikov wrote: >Jess, > >JXPath has always supported Xalan through JAXP DOM APIs. What you may have seen in the source code of JXPath is some attempts to optimize JXPath when it is used specifically in combination with Xalan. You would not be interested in that optimization, because it would only be applied to static DOM and take advantage of DTM. > >Try using JXPath and let us know how it works out. > > Dumb question (which I probably figured out last time I tried this stuff, but have no notes/recollection of): Is there an equivalent of Xalan's one-size-fits-all "XObject xobj = xpath.execute(...)" mechanism in JXPath? I'm looking for a CompiledExpression.getValue() that returns an Object for which: 1. I know the various possible return types when this is applied to a DOM. 2. The result is the most appropriate (as per the XPath standard) of the following: * NodeList or NodeIterator -- or something from which I can easily implement one or both of these interfaces * Boolean * Number * String [I assume callers will apply includes castes within their XPath expressions as necessary where they expect a non-node result.] Is there such a beast? The one-API fits all (beans, JDOM, DOM, etc) approach makes this a bit hard for me to decipher. -- Jess Holle --------------080306060908050102060503--