1

我在 XForms 文档中有一个绑定,如下所示:

<xforms:bind id="fr-form-binds" nodeset="instance('fr-form-instance')">
<xforms:bind id="section-1-bind" nodeset="section-1">
    <xforms:bind id="age-bind" name="age" nodeset="age" />
    <xforms:bind id="first-name-bind" nodeset="first-name"
        name="first-name"
        constraint="instance('fr-form-resources')//resource/section-1/first-name/alert/@show = false()" />
</xforms:bind>

我们是否可以通过其 id 以编程方式访问(通过 XPath 或其他方式)绑定并更改 age-bind 中的约束属性,以便不需要像 first-name-bind 中那样编写约束并以编程方式更新 fr-form-资源?

4

0 回答 0