Hi,
I guess your second xsl:copy must also be a xsl:copy-of since
xsl:copy does not allow for a select attribute.
Anyway, to get rid of the namespaces use xsl:apply-templates
instead of copying to run the nodes taken from the query output
through a namespace-reducing transformation as follows:
<xsl:template match=““>
<xsl:element name=”{local-name()}“>
<xsl:for-each select=”@”>
<xsl:attribute name=“{local-name()}”>
<xsl:value-of select=“.”/>
</xsl:attribute>
</xsl:for-each>
xsl:apply-templates/
</xsl:element>
</xsl:template>
If your stylesheet includes other transformations besides
those pertaining to xquery output, use modes.
Regards,
Juliane
#webMethods#Tamino#API-Management