Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/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
带有复杂表达式的xforms警告_Xforms - Fatal编程技术网

带有复杂表达式的xforms警告

带有复杂表达式的xforms警告,xforms,Xforms,我对xform有一个问题,它只能看到客户系统管理员。我在电脑里看不见。 有一个xforms代码,其中输出有一个ref属性(“if(license)…”) 谁来帮我,怎么修复这个问题? 谢谢正如错误所述,问题在于元素中的表达式的计算结果是字符串而不是节点 xforms控件上的ref属性需要引用数据模型中的节点,而不是字符串。@user2301515好吧,您需要完全重写它,但这就是问题发生的原因。我不知道是什么原因,只有管理员可以看到,我不可能看到,为什么。 <xforms:group ref

我对xform有一个问题,它只能看到客户系统管理员。我在电脑里看不见。 有一个xforms代码,其中输出有一个ref属性(“if(license)…”)

谁来帮我,怎么修复这个问题?
谢谢

正如错误所述,问题在于
元素中的表达式的计算结果是字符串而不是节点


xforms控件上的
ref
属性需要引用数据模型中的节点,而不是字符串。

@user2301515好吧,您需要完全重写它,但这就是问题发生的原因。我不知道是什么原因,只有管理员可以看到,我不可能看到,为什么。
<xforms:group ref="content">
    <xforms:label>The shop list</xforms:label>
    <xforms:output ref="name"><xforms:label>Name</xforms:label></xforms:output>
    <!--There is a complex expression-->
    <xforms:output
        ref="if(licence) then
                if(licence/to) then
                    concat(licence/code,' (',
                        concat(substring(licence/from,9,2),'.',substring(licence/from,6,2),'.',substring(licence/from,1,4))
                        ,' - ',
                        concat(substring(licence/to,9,2),'.',substring(licence/to,6,2),'.',substring(licence/to,1,4))
                    ,')')
                else
                    concat(licence/code,' (no due date, from ',
                        concat(substring(licence/from,9,2),'.',substring(licence/from,6,2),'.',substring(licence/from,1,4))
                    ,')')
                else
                    'You have not a licence!'">
        <xforms:label>licence</xforms:label>
    </xforms:output>
</xforms:group>
WARN  XFormsServer  - exception while evaluating XPath expression {throwable: "org.orbeon.oxf.common.ValidationException:  (preparing XPath expression: expression='{if (not(exf:relevant( ... the same expression ... ))) then 'xforms-disabled-subsequent' else ''}'): Required item type of first argument of exf:relevant() is node(); supplied value has item type xs:string
Required item type of first argument of exf:relevant() is node(); supplied value has item type xs:string
        at org.orbeon.oxf.common.ValidationException.wrapException(ValidationException.java:119)
        at org.orbeon.oxf.util.XPathCache.handleXPathException(XPathCache.java:418)