Xalan-J Interpretive truncates fractional portion of predicate
--------------------------------------------------------------

         Key: XALANJ-2152
         URL: http://issues.apache.org/jira/browse/XALANJ-2152
     Project: XalanJ2
        Type: Bug
  Components: Xalan-interpretive  
    Reporter: Henry Zongaro
    Priority: Minor


According to section 2.4 of XPath 1.0 [1], "A PredicateExpr is evaluated by 
evaluating the Expr and converting the result to a boolean. If the result is a 
number, the result will be converted to true if the number is equal to the 
context position and will be converted to false...."  However, Xalan-J 
interpretive appears to convert the number to an integer and compares the 
context position with that value, which makes a difference if the predicate 
value has a fractional portion.

[1] http://www.w3.org/TR/xpath#predicates

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to