Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-2152

Xalan-J Interpretive truncates fractional portion of predicate

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.6
    • None
    • Xalan-interpretive
    • None
    • fp4

    Description

      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

      Attachments

        1. j2152.out
          0.0 kB
          Henry Zongaro
        2. j2152.xml
          0.1 kB
          Henry Zongaro
        3. j2152.xsl
          0.3 kB
          Henry Zongaro

        Activity

          People

            Unassigned Unassigned
            zongaro@ca.ibm.com Henry Zongaro
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: