要素値が特定の文字列値である場合、要素値をクリアしたいだけです
入力xml
<A>
<B>
<C>BOLD</C>
</B>
</A>
望ましい出力
<A>
<B>
<C/>
</B>
</A>
私のxsltは次のように見えますが、機能しません。すべてをクリアするだけです
<xsl:template match="A/B/C/text()">
<xsl:if test="text()='BOLD'">
<xsl:text></xsl:text>
</xsl:if>
</xsl:template>
<!--Copy the rest of the document as it is-->
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
助けてくださいありがとう