2 に答える
0
追加
<xsl:template match="italic">
<I>
<xsl:apply-templates select="@* | node()"/>
</I>
</xsl:template>
それだけ。属性とノードの処理は、残りのコードによって処理されます。このサンプルでは、独自のロジックがない場合にコピーを行う方法を示しました。ソリューションは次のようになります。
<xsl:template match="/">
<xsl:message>Inside root</xsl:message>
<xsl:apply-templates select="/root/ISSUES" />
</xsl:template>
<xsl:template match="/root/ISSUES">
some logic follows here( it might even internally call many templates)
</xsl:template>
<xsl:template match="italic">
<I>
<xsl:apply-templates select="@* | node()"/>
</I>
</xsl:template>
于 2013-09-13T12:54:42.327 に答える