2017-06-13 82 views
0

从14.04移动到16.04后,项目不再有效。 <fr:xforms-inspector />与* .xsl文件中的<script></script>冲突。见下面的代码。xforms-inspector与<script>冲突</script> in * .xsl

(Ubuntu的16.04/tomcat8/Orbeon表格2016.3.201612302139/Firefox)的

问题

  • 为什么<fr:xforms-inspector />突然这个标签发生冲突?
  • 为什么不在14.04。这是一个需要报告的错误,或者这是我的错误,这不再有效?
  • 有没有办法解决它?
  • 与它有关:https://doc.orbeon.com/xforms/actions/scripting.html这种方式是否被弃用?

blubb.xhtml

<?xml version="1.0" encoding="UTF-8"?> 
<html xmlns="http://www.w3.org/1999/xhtml" 
     xmlns:xf="http://www.w3.org/2002/xforms" 
     xmlns:fr="http://orbeon.org/oxf/xml/form-runner" 
> 
<head> 
    <title>Blubb</title> 
    <xf:model> 
     <xf:instance id="instance_stylesheet" src="blubb.xsl" /> 
    </xf:model> 
</head> 

<body> 
    <fr:xforms-inspector /> 
</body></html> 

blubb.xsl

<?xml version="1.0" encoding="UTF-8"?> 
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 
<xsl:output method="html" indent="no" omit-xml-declaration="yes" encoding="UTF-8"/> 
<xsl:template> 
    <html> 
     <!-- inserting the script tag, results in the error. 
      It does not matter, whats in it. -->  
     <script> 

     </script> 
     <head></head> 
     <body></body> 
    </html> 
</xsl:template> 
</xsl:stylesheet> 

低于orbeon从文件创建的网页。检查员没有代码视图,那些也属于它。其他的行为也是随机的。

Resulting error. the \n ... belonging to the error too.

+0

如果这是对Ubuntu做的,我会感到惊讶。但是,我们如何重现“你能创造一个再现问题的最小例子,我们可以在这里运行吗? – avernet

+0

正如我所知,这两个代码片段就足够了,当你把它放入文件并在orbeon环境中运行来重现错误时。没有必要添加更多的代码。如果我忘记了一些东西,请告诉我们,你会尽快收到丢失的文件。 –

+0

@avernet是否有可能重现该行为?你需要更多的信息吗?请告诉我。 –

回答