这里是我处理XML:我需要适应与第二结构为什么这个XSL模板无效?
<xsl:template match="/">
<xsl:call-template name="CustomTemplate"/>
</xsl:template>
<xsl:template name="CustomTemplate">
<xsl:template match="Row">
<xsl:value-of select="@ID"/>
</xsl:template>
</xsl:template>
:
<dsQueryResponse>
<Rows>
<Row ID="14"></Row>
</Rows>
</dsQueryResponse>
这XSL工作:
<xsl:template match="Row">
<xsl:value-of select="@ID"/>
</xsl:template>
但没有这一项,制作一个调用模板,有没有人知道第二个XSL中需要改变什么?
XSL模板不能嵌套。请编辑你的文章,以显示你想输出给定的输入XML。 –