Sorry, I feel a little mess.
So, you mean to use another template which is matching for the Text? In my xsl file, in the
<xsl:template match="rootNode">
</xsl:template>
there are other codes to deal with the other part of the input xml. Where should I put the apply-templates? Anywhere in the <xsl:template match="rootNode">? And after
<xsl:template match="rootNode">
</xsl:template>
then I put
<xsl:template match="Node">
<node1 tag="Text">
<xsl:attribute name="detail">
<xsl:apply-templates select="anotherNode/Text"/>
</xsl:attribute>
</node1>
</xsl:template>
codes? Right?
|