XSL: wrong answer from substring() function

XMLWordPrintable

    • b49
    • Verified

        XSL substring(value,start, length) function incorrectly process the -Inf length values (the -Inf is treated as Inf).
        Consider the following xsl code snippet:
        |<xsl:value-of select="substring('asdf',2,-1 div 0)"/>|
        It should return:
        ||
        But the result is:
        |sdf|

              Assignee:
              Aleksej Efimov
              Reporter:
              Shadow Bug
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: