我正在尝试根据 XML Schema 绑定 XForms 实例。它适用于构面,例如在以下情况下,ValeurNoteType对类型的限制在哪里xs:decimal:
<xforms:bind nodeset="instance('note-template')">
<xforms:bind nodeset="Valeur" type="ValeurNoteType"/>
</xforms:bind>
XForms 1.1 似乎不支持用于绑定的复杂类型,如下例所示,其中ExamenType是序列:
<xforms:bind nodeset="instance('examen-template')">
<xforms:bind nodeset="Examen" type="ExamenType"/>
</xforms:bind>
我想要的是避免为xml 模式中存在的类型的<xforms:bind nodeset="Titre" required="true()"/>每个元素(或其他条件,如序列中元素的类型等)编写。ExamenTypeMin Occurs = 1xs:date
有没有办法用 Orbeon 做到这一点?