これはそれを行う必要があります:
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:sxi="http://sap.com/xi/XI/SplitAndMerge">
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="sxi:Messages">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="sxi:Message1">
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>
最初のテンプレートはすべてをコピーし、他の2つのテンプレートは要素sxi:Messages
とxsi:Message1
要素をスキップします-コンテンツをコピーします。
http://sap.com/xi/XI/SplitAndMerge
名前空間内のすべての要素を削除する場合:
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:sxi="http://sap.com/xi/XI/SplitAndMerge">
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="sxi:*">
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>