ho questo file XML:Estrarre un sottoinsieme di file XML usando XSL
<Response>
<errorCode>error Code</errorCode>
<errorMessage>msg</errorMessage>
<ResponseParameters>
<className>
<attribute1>a</attribute1>
<attribute2>b</attribute2>
</className>
</ResponseParameters>
</Response>
E voglio l'output di essere:
<className>
<attribute1>a</attribute1>
<attribute2>b</attribute2>
</className>
mio file XSL corrente è compreso anche tag "ResponseParameters" , che non voglio
MODIFICA: si noti che il nodo className è dinamico. Non so quale sarà questo nome in fase di runtime.
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output indent="yes" />
<xsl:template match="/">
<xsl:copy-of select="//ResponseParameters">
</xsl:copy-of>
</xsl:template>
</xsl:stylesheet>