XSLT Pandas - 如何将孙子值拉到数据框

问题描述 投票:0回答:1
python pandas xml xslt parent-child
1个回答
0
投票

我认为而不是:

  <xsl:template match="*[@ml:dessert]">
        <xsl:copy>
            <xsl:value-of select="@ml:name"/>
        </xsl:copy>
    </xsl:template>

你想要:

  <xsl:template match="ml:dessert">
        <xsl:copy>
            <xsl:value-of select="ml:name"/>
        </xsl:copy>
    </xsl:template>
© www.soinside.com 2019 - 2024. All rights reserved.