Orbeon 2018.1 fr:label xpath中缺少名称空间

时间:2018-09-16 16:20:19

标签: orbeon

用于Orbeon 3.9的代码现在在Orbeon 2017.2.2和2018.1中失败。它仅出现在fr:label上,而不出现在xf:output或xf:input

错误:

|XPath syntax error at char 48 in {...nt(instance('test')/xis:tes...}:                                                 
|    Prefix xis has not been declared 

复制片段,其中在html元素和实例根元素上都声明了名称空间前缀。

<xh:html xmlns:fr="http://orbeon.org/oxf/xml/form-runner" xmlns:xis="http://art-decor.org/ns/xis" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:xh="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events">
    <xh:head>
        <xh:title>orbeon-2018-1-fr-namespace-issue</xh:title>
        <xf:model id="repro">
            <xf:instance id="test">
                <tests xmlns:xis="http://art-decor.org/ns/xis">
                    <test>1</test>
                    <test>2</test>
                </tests>
            </xf:instance>
        </xf:model>
    </xh:head>
    <xh:body>
        <xh:h3>TEST</xh:h3>
        <fr:tabview>
            <fr:tab>
                <fr:label ref="concat('TESTS (',count(instance('test')/xis:test),')')"/>
            </fr:tab>
        </fr:tabview>
    </xh:body>
</xh:html>

0 个答案:

没有答案