Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/backbone.js/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
Java 获取预成熟文件结束错误_Java_Xslt - Fatal编程技术网

Java 获取预成熟文件结束错误

Java 获取预成熟文件结束错误,java,xslt,Java,Xslt,这是我的XSL: <?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.abc.org/1999/XSL/Transform"> <xsl:key name="effectLookup" match="/InputAnimationConfigurationSchema/ConfigurationEffec

这是我的XSL:

<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" 
  xmlns:xsl="http://www.abc.org/1999/XSL/Transform">

 <xsl:key name="effectLookup"
       match="/InputAnimationConfigurationSchema/ConfigurationEffects/*" 
       use="@Id" />

 <xsl:template match="/">
 <html>
  <body>
    <h2></h2>
    <table border="1">
      <tr bgcolor="#9acd32">
        <th>Widget</th>
        <th>Trigger</th>
        <th>effects</th>
      </tr>

      <xsl:apply-templates select=
   "/InputAnimationConfigurationSchema/ConfigurationMappings/ConfigurationMap" />
    </table>
  </body>
 </html>
 </xsl:template>

 <xsl:template match="ConfigurationMap">
 <xsl:choose>
  <xsl:when test="not(ConfigurationEffects)">
    <xsl:call-template name="EmptyConfiguration">
      <xsl:with-param name="widgetType" select="Widget/@Type" />
    </xsl:call-template>
  </xsl:when>
  <xsl:otherwise>
    <xsl:apply-templates select="ConfigurationEffects/Effect" />
  </xsl:otherwise>
 </xsl:choose>
 </xsl:template>

 <xsl:template match="Effect">
 <tr>
  <td>
    <xsl:value-of select="../../Widget/@Type"/>
  </td>
  <td>
    <xsl:value-of select="../../Trigger/@Type"/>
  </td>
  <td>
    <xsl:value-of select="key('effectLookup', ./text())/@DisplayName" />
  </td>
 </tr>
 </xsl:template>

<xsl:template name="EmptyConfiguration">
<xsl:param name="widgetType" />
<tr>
  <td>
    <xsl:value-of select="$widgetType"/>
  </td>
  <td></td>
  <td></td>
 </tr>
 </xsl:template>
 </xsl:stylesheet>
当我执行XmltoHtml.java时,我得到了类似于[Fatal error]new_XmltoHtml.xsl:1:1的错误:文件过早结束。 错误:“文件过早结束。” 致命错误:“无法编译样式表”


当我在eclipse中作为参数传递路径时。同样需要指导和帮助

没有开始标签

</WipeEffect>

在xml中..第4行
您的xml不是有效的xml。

没有开始标记

</WipeEffect>

在xml中..第4行
您的xml不是有效的xml。

元素类型
“AEffect”、“BEffect”和“CEffect”
必须由输入xml中匹配的结束标记
、“”和“
终止。

元素类型
“AEffect”、“BEffect”和“CEffect”
必须由匹配的结束标记
、“”和“”
在输入XML中。

“在eclipse中作为参数传递路径”-完整路径还是只是相对路径?如果是后者,您确定Java进程的工作目录是您所期望的吗?好的,它现在工作得很好。感谢您的支持和帮助“在eclipse中作为参数传递路径”——完整路径还是相对路径?如果是后者,您确定您的Java进程的工作目录是您所期望的吗?好的,它现在工作正常..谢谢您的支持,不允许使用帮助签名。不要在你的答案中宣传其他网站。只有当外部链接为OP的问题提供了解决方案时,才鼓励使用它们。@RaviThapliyal---好的。我会注意以后的参考。谢谢你的指导。不允许签名。不要在你的答案中宣传其他网站。只有当外部链接为OP的问题提供了解决方案时,才鼓励使用它们。@RaviThapliyal---好的。我会注意以后的参考。谢谢你的指导
</WipeEffect>