xforms-inspector与* .xsl中的<script> </script>冲突

时间:2017-06-13 13:30:30

标签: orbeon xforms

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

(Ubuntu 16.04 / tomcat8 / Orbeon Forms 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从文件创建的网页下方。检查员没有代码视图,\n也属于它。其他所有行为也是随机发生的。

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

1 个答案:

答案 0 :(得分:1)

issueOrbeon Forms 2017.1以来已修复,因此,如果您遇到此问题并使用早期版本,我建议您upgrade to 2017.1