Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 82329 invoked from network); 24 Jan 2007 07:37:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jan 2007 07:37:02 -0000 Received: (qmail 5138 invoked by uid 500); 24 Jan 2007 07:37:04 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 5082 invoked by uid 500); 24 Jan 2007 07:37:04 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 5068 invoked by uid 500); 24 Jan 2007 07:37:03 -0000 Delivered-To: apmail-jakarta-tomcat-dev@jakarta.apache.org Received: (qmail 5065 invoked by uid 99); 24 Jan 2007 07:37:03 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jan 2007 23:37:03 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jan 2007 23:36:57 -0800 Received: by brutus.apache.org (Postfix, from userid 33) id 115D57142D6; Tue, 23 Jan 2007 23:36:36 -0800 (PST) From: bugzilla@apache.org To: tomcat-dev@jakarta.apache.org Subject: DO NOT REPLY [Bug 40356] - expressions in XML attributes evaluated in wrong order In-Reply-To: X-Bugzilla-Reason: AssignedTo Message-Id: <20070124073636.115D57142D6@brutus.apache.org> Date: Tue, 23 Jan 2007 23:36:36 -0800 (PST) X-Virus-Checked: Checked by ClamAV on apache.org DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=40356 ------- Additional Comments From dies@jp.fujitsu.com 2007-01-23 23:36 ------- For reference I am adding an excerpt from the latest reply I received from Bill Barker in the dev mailing list regarding this issue ('> >' parts are mine): ======= > The JSP in question has several expressions. I thought the following in > > the JSP 2.0 spec (section JSP.1.12.3) would apply: > > > > Expressions are evaluated left-to-right in the JSP page. > > > > This does not apply when expressions are used in attributes? > > well, no. however section 1.14 may apply. The interpretation of all actions start by evaluating the values given to its attributes left to right, and assigning the values to the attributes. A quick search didn't turn up much, but my recollection is that SAX isn't required to be order-preserving on attributes. ======= So the spec does specify the evaluation order of the attributes, but if the SAX parser does not preserve the order of the attributes it would take unreasonable effort to fix. I personally did not find anything either about the order of attributes in the XMLSchema nor SAX spec, but of all my tries using the Xerces 2 parser bundled with Tomcat and the one with JDK5.0 the order was preserved, and Tomcat 5.5 evaluates them in opposite order. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org