You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Brian Minchau (JIRA)" <xa...@xml.apache.org> on 2005/07/13 08:14:10 UTC

[jira] Commented: (XALANJ-2153) XSLTC truncates fractional portion of predicate

    [ http://issues.apache.org/jira/browse/XALANJ-2153?page=comments#action_12315688 ] 

Brian Minchau commented on XALANJ-2153:
---------------------------------------

Test case is attached to XALANJ-2152.

The problem is that it is converting the value of the predicate to an integer, but it should be using the actual numeric value
in the comparison against postion. So a value of 1.5 should never match the position.

> XSLTC truncates fractional portion of predicate
> -----------------------------------------------
>
>          Key: XALANJ-2153
>          URL: http://issues.apache.org/jira/browse/XALANJ-2153
>      Project: XalanJ2
>         Type: Bug
>   Components: XSLTC
>     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, XSLTC 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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org