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

xforms-inspector conflicts with <script></script> in *.xsl

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

( Ubuntu 16.04 / tomcat8 / Orbeon Forms 2016.3.201612302139 / firefox )

问题

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 也属于它。其他所有行为也是随机影响的。

这个issue is fixed since Orbeon Forms 2017.1, so if you're hitting this problem and using an earlier version, I'd recommend you upgrade to 2017.1.