fn:string-join optimization?
Replies (1)
Please register to reply
Added by Anonymous almost 20 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
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
Please register to reply