Project

Profile

Help

fn:string-join optimization?

Added by Anonymous over 19 years ago

Legacy ID: #2973654 Legacy Poster: marcvc (marcvc)

Michael, There seems to be an optimization in Saxon that removes fn:string-join functions when the first argument is statically known to be an xs:string instance. However, this optmization seems to be used both in case of xs:string and xs:string?. The latter seems incorrect. Consider the following query as example, it evaluates to the empty sequence iso an empty string in case there is no 'e' element. declare function local:foo($i as xs:string?) { fn:string-join($i, '') }; local:foo(.//e) Thanks, Marc


Replies (1)

RE: fn:string-join optimization? - Added by Anonymous over 19 years ago

Legacy ID: #2974613 Legacy Poster: Michael Kay (mhkay)

Thanks. I've fixed this and registered it as a bug. I didn't think it merited a patch. Michael Kay

    (1-1/1)

    Please register to reply