Return-Path: Delivered-To: apmail-jakarta-taglibs-user-archive@www.apache.org Received: (qmail 16800 invoked from network); 8 Sep 2004 08:37:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Sep 2004 08:37:03 -0000 Received: (qmail 93979 invoked by uid 500); 8 Sep 2004 08:36:56 -0000 Delivered-To: apmail-jakarta-taglibs-user-archive@jakarta.apache.org Received: (qmail 93943 invoked by uid 500); 8 Sep 2004 08:36:55 -0000 Mailing-List: contact taglibs-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tag Libraries Users List" Reply-To: "Tag Libraries Users List" Delivered-To: mailing list taglibs-user@jakarta.apache.org Received: (qmail 93926 invoked by uid 99); 8 Sep 2004 08:36:55 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [213.92.40.177] (HELO postfix.rm.kataweb.it) (213.92.40.177) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 08 Sep 2004 01:36:54 -0700 Received: from [192.168.205.68] (f-tordini.rm.kataweb.it [192.168.205.68]) by postfix.rm.kataweb.it (Postfix) with ESMTP id 9F77E65925 for ; Wed, 8 Sep 2004 10:36:51 +0200 (CEST) Message-ID: <413EC4A3.1030405@kataweb.it> Date: Wed, 08 Sep 2004 10:36:51 +0200 From: Flavio Tordini User-Agent: Mozilla Thunderbird 0.7 (X11/20040615) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tag Libraries Users List Subject: using Node variables with JSTL XML tags Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N hi all, I'm experimenting with the JSTL XML tags. I have a org.w3c.dom.Node variable and I'm trying to use the JSTL with it. Something like: The odd thing is that the XPath expression is evaluated relative the document root, not to the specified node. The following works: I cannot find an explanation in the JSTL 1.1 spec. The only thing I found is in section 11.1.3: "An XPath expression must also treat variables that resolve to implementations of standard DOM interfaces as representing nodes of the type bound to that interface by the DOM specification." Is this behaviour by design? Is it compliant with the spec? Thank you in advance, flavio --------------------------------------------------------------------- To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: taglibs-user-help@jakarta.apache.org