Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/xpath/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xslt 希望应用模板。请参阅源代码中OP的注释:。我很清楚OP希望应用模板。 <parent> <child/> <child/> <parent> <parent> <nuis_Xslt_Xpath_Xslt 1.0 - Fatal编程技术网

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"/>