Change the XSLT engine from Saxon to Xalan.
By default, eXist-db 2.0 comes with the following configuration in conf.xml
in the eXist-db install directory:
<transformer class="net.sf.saxon.TransformerFactoryImpl">
To solve your problem, change it to:
<transformer class="org.apache.xalan.processor.TransformerFactoryImpl">