Xslt 希望应用模板。请参阅源代码中OP的注释:。我很清楚OP希望应用模板。 <parent> <child/> <child/> <parent> <parent> <nuis
Xslt 希望应用模板。请参阅源代码中OP的注释:。我很清楚OP希望应用模板。 <parent> <child/> <child/> <parent> <parent> <nuis,xslt,xpath,xslt-1.0,Xslt,Xpath,Xslt 1.0,希望应用模板。请参阅源代码中OP的注释:。我很清楚OP希望应用模板。 <parent> <child/> <child/> <parent> <parent> <nuisance> <child/> <child/> </nuisance> <parent> <xsl:choose> <xsl:whe
希望应用模板。请参阅源代码中OP的注释:
。我很清楚OP希望应用模板。
<parent>
<child/>
<child/>
<parent>
<parent>
<nuisance>
<child/>
<child/>
</nuisance>
<parent>
<xsl:choose>
<xsl:when test="parent/child">
<!-- select="parent/child"-->
</xsl:when>
<xsl:otherwise>
<!-- select="parent/*/child"-->
</xsl:otherwise>
</xsl:choose>
<xsl:apply-templates select="parent/child|parent/*/child"/>
parent/child or parent/*/child
parent/child|parent/*/child
<xsl:apply-templates select="parent/child|parent/*/child"/>