The third parameter of substring() should be a length. Sablotron seems to interpret it as an index into the string. Also, non-integer parameters should be rounded (not truncated). See http://www.w3.org/TR/xpath#function-substring .robin. -- God! a red nugget: a fat egg under a dog.
