Example 39 /data/message/block1[3]/field1A relative path to the position_x field:./position_x$section[.="Section3"]/data/message/block1[position()<=3]/data/message/block1[position() > last()-3]$x[@index = current()/@index]self::*[$section=’Section3’]self::*[string(field)]$color_red[current()/value < 0]The string is returned for 1 div (value < 0) = 1. This is because the second argument of substring() is the start position of the returned string. 1 div (value < 0) = 1 if (value < 0) is true since true = 1. If (value>=0) is false, then the start position is 1 div 0 which is infinity. In this case, there is no start position of the string and an empty string is returned, which means no modification on the color property.substring(’RGB(255,0,0)’, 1 div (value < 0))
OpenText StreamServe 5.6 | Updated: 2013-03-01 |