My XSLT including XDQL code works well in one environment (6.5). But in our new installation the same XSLT can not generate rendition. If I comment out the XDQL code in the XSLT, then it can work. So it seems there are some differences in configuration that prevent the XSLT with XDQL from working.