Hi,
Thanks I got the output now.. I changed the XSL code a bit.
Changed <xsl:template match="./soapenv:Envelope"> to <xsl:template match="/"> and subsequently in below <xsl:value-of select="./soapenv:Header/v2:XHeader/v2:Name"/> to <xsl:value-of select="/soapenv:Header/v2:XHeader/v2:Name"/>. It is working now. Not sure why it was giving that error for ./soapenvelope.
Thanks.