当前版本的 Orbeon 中的动态元素发生变化?

Dynamic elements changes in current version of Orbeon?

我想知道如何在 Orbeon 中使用动态元素。在 Orbeon 的沙箱中存在一个名为 dynamic-dropdown (http://localhost:8080/orbeon/xforms-sandbox/sample/dynamic-dropdown) 的示例。

<html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:xf="http://www.w3.org/2002/xforms"
  xmlns:xxf="http://orbeon.org/oxf/xml/xforms">
<head>
    <title>Dynamic dropdown depending on checkboxes</title>
    <xf:model>
        <xf:instance id="selected-values" xmlns="">
            <instance>
                <pets/>
                <favorite/>
            </instance>
        </xf:instance>
        <xf:instance id="pets" xmlns="">
            <root>
                <item name="Cat" value="cat"/>
                <item name="Dog" value="dog"/>
                <item name="Fish" value="fish"/>
                <item name="Cobra" value="cobra"/>
            </root>
        </xf:instance>
    </xf:model>
    <style type="text/css">
        .xforms-label { display: block; font-weight: bold }
    </style>
</head>
<body>
    <xf:select ref="pets" appearance="full">
        <xf:label>Please list all your pets:</xf:label>
        <xf:itemset ref="instance('pets')/item">
            <xf:label ref="@name"/>
            <xf:value ref="@value"/>
        </xf:itemset>
    </xf:select>
    <br/>
    <xf:select1 ref="favorite">
        <xf:label>Select your favorite pet:</xf:label>
        <xf:itemset>
            <xf:label/>
            <xf:value/>
        </xf:itemset>
        <xf:itemset ref="instance('pets')/item[@value = xxf:split(context()/../pets)]">
            <xf:label ref="@name"/>
            <xf:value ref="@value"/>
        </xf:itemset>
    </xf:select1>
</body>
</html>

我已经在 Orbeon 4.8 和 4.9 中测试过,但什么也没做。毫无疑问,我指的是下拉列表没有填满所选元素。

我也可以在 "open" 沙箱 (http://www.argonauta.org/orbeon/xforms-sandbox/sample/dynamic-dropdown) 中对其进行测试,这里工作正常。但我不知道是哪个版本(可能是 4.3)。

问题:该示例在当前版本的 Orbeon 中无效吗?这是一个错误吗? 如果示例无效,必须进行哪些修改?

好的,看来如果你换行:

<xf:itemset ref="instance('pets')/item[@value = xxf:split(context()/../pets)]">

<xf:itemset ref="instance('pets')/item[@value = xxf:split(context()/pets)]">

该示例适用于 Orbeon 4.9 版。