We have this XDQL works very well in all the past environments.
<xsl:template name="XDQL1"> <!-- Generic XDQL template-->
<xsl:param name="dql"/>
<xsl:param name="includecontent" select="string('false')"/>
<xsl:variable name="pdql" select="string($dql)"/>
<xsl:variable name="xdql" select="java:com.documentum.xml.xdql.DfXmlQuery.new()"/>
<xsl:variable name="init" select="java:init($xdql)"/>
<xsl:variable name="setDql" select="java:setDql($xdql,$pdql)"/>
<xsl:variable name="setContentEncoding" select="java:setContentEncoding($xdql,'dom')"/>
<xsl:variable name="setContentFormat" select="java:setContentFormat($xdql,'xml')"/>
<xsl:variable name="setRootNode" select="java:setRootNode($xdql,'xdql')"/>
<xsl:variable name="Repeatingasnested" select="java:setRepeatingAsNested($xdql,false())"/>
<xsl:choose>
<xsl:when test="$includecontent='false'">
<xsl:variable name="param_includeContent" select="java:includeContent($xdql,false())" />
</xsl:when>
<xsl:otherwise>
<xsl:variable name="param_includeContent" select="java:includeContent($xdql,true())" />
</xsl:otherwise>
</xsl:choose>
<xsl:variable name="execute" select="java:execute($xdql,'DF_READ_QUERY',$DMS_SESSION_ID)"/>
<xsl:variable name="results" select="java:getXMLDOM($xdql)"/>
<xsl:copy-of select="$results"/>
</xsl:template>
Now our environment is upgraded to Windows Server 2003, Documentum + web Publisher 6.5, WebSphere 6.1.
When we try to apply the XSLT template it can not generate rendition for contents. WebSphere error log shows following error for the red line of code:
ERROR: 'Cannot convert data-type 'org.w3c.dom.Document' to 'string'.'
FATAL ERROR: 'Could not compile stylesheet'
How to solve this problem? Any comment is very welcome.
My guess is: in the past environments, the XSLT processor is Interpretive, but WebSphere 6.1 use compiled processor.