0
我想創建一個自定義組件,它在表單構建器中實例化時,它將在fr-form-instance中包含子節點並且不僅包含教程中顯示的單個節點: http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components-guide#TOC-Event-handling。Orbeon在表單構建器中定製xbl組件
例如,如果我實例化形式建設者教程輸入組件:
.....
<fb:metadata>
<fb:display-name lang="en">Custom Component</fb:display-name>
<fb:datatype>xforms:string</fb:datatype>
<fb:template>
<cc:test ref=""/>
</fb:template>
</fb:metadata>
<xbl:binding element="fr|tutorial-input" id="fr-tutorial-input">
<xbl:template>
<xforms:group xbl:attr="model context ref bind" xxbl:scope="outer">
<xbl:content includes="xforms|label,xforms|help,xforms|hint,xforms|alert"/>
<xforms:group xxbl:scope="inner">
<xxforms:variable name="binding" as="node()?">
<xxforms:sequence select="." xxbl:scope="outer"/>
</xxforms:variable>
<xforms:input ref="$binding"/>
</xforms:group>
</xforms:group>
</xbl:template>
</xbl:binding>
.....
表單生成器將只有一個節點,FR形式的實例:
.....
<xforms:instance id="fr-form-instance">
<form>
<section>
<contorl-x/> //only one node
.....
我想要做的是有:
.....
<xforms:instance id="fr-form-instance">
<form>
<section>
<contorl-x>// x child nodes
<contorl-x-child-one>
<contorl-x-child-two>
.....
</contorl-x>
.....
有沒有可能這樣做?其他組件/示例中是否存在與此類似的行爲?