为什么它显示错误“文件是空的”

时间:2016-12-08 08:18:28

标签: jquery xslt xslt-1.0 xslt-2.0

你可以告诉我为什么显示错误“文件是空的”

这是我的代码 https://plnkr.co/edit/TN1BN5Yao5Z63RDcBGlN?p=preview

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

    <xsl:import href="second.xsl"></xsl:import>
    <xsl:template name="dosomething">
        <xsl:text>A function that does something</xsl:text>
    </xsl:template>
    <xsl:template match="/">
        <xsl:call-template name="dosomething"/>
        <xsl:call-template name="dosomething"/>
        <xsl:call-template name="abc"/>
    </xsl:template>
</xsl:stylesheet>

1 个答案:

答案 0 :(得分:0)

你没有向我们展示一切,你还没有准确地说出你在做什么(例如,问题标题中的“它”是什么?)。

但是如果指向pinkr.co的链接是你的XML输入,那么错误就是XML输入格式不正确 - 它包含一个开始标记而没有结束标记。

相关问题