Hey Hermann,
Further analyzing the problem, I found out, this error I get only Whenever I am using GET operation from Client(with query parameter ). For POST operation it works fine.
I am calling the as a template. Don't know where it is getting GET "&" in the xquery
<xsl:variable name="queryResult">
<xsl:call-template name="FetchRoutingInfo">
<xsl:with-param name="methodVar" select="$operation" />
<xsl:with-param name="uriVar" select="$URI" />
<xsl:with-param name="routingFileVar" select="$confFileRoute" />
</xsl:call-template>
</xsl:variable>
<xsl:template name="FetchRoutingInfo">
<xsl:param name="methodVar" />
<xsl:param name="uriVar" />
<xsl:param name="routingFileVar" />
<xsl:variable name="xquery">
for $x in RoutingConfiguration/Endpoint
where $x/resource[='<xsl:value-of select="$methodVar" />'] and $x/resource[='<xsl:value-of select="$uriVar"/>']
return $x
</xsl:variable>
<dp:set-variable name="'var://context/xquery'" value="string($xquery)" />
<xsl:copy-of select="dp:xquery-transform('var://context/xquery',$routingFileVar)" />
</xsl:template>
Many thanks
Sumit Kanojia
#DataPower#Support#SupportMigration