tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 40356] - expressions in XML attributes evaluated in wrong order
Date Wed, 24 Jan 2007 07:36:36 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40356>.
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.
<spec-quote version="2.0" spec="jsp" section="1.14" reason="ambiguous">
The interpretation of all actions start by evaluating the values given to 
its attributes left to right, and assigning the values to the attributes.
</spec-quote>

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


Mime
View raw message