【发布时间】:2014-06-18 14:40:28
【问题描述】:
我正在尝试调试现有的 XSLT 文件并具有以下元素
<xsl:choose>
<xsl:when test="//j:Node_A/j:Node_B/j:Node_c">
<xsl:apply-templates select="//j:Node_A/j:Node_B/j:Node_c />
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="NoMatch" />
</xsl:otherwise>
</xsl:choose>
</xsl:template>
据我了解,测试语句在 XML 中寻找类似以下的结构,并在找到该结构时应用模板。
<node_a>
<node_b>
<node_c>
DATA
</node_c>
</node_b>
</node_a>
我不明白的是//的含义。
【问题讨论】: