I m trying to create a custom component that when instantiated in form builder it would have in fr-form-instance a node containing child nodes and not only a single node as shown in the tutorial: http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components-guide#TOC-Event-handling.
例如,如果我用制成手工艺中的教学投入部分:
.....
<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>
.....
制式建筑商只能有一口 no:
.....
<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>
.....
是否可能这样做? 在其他组成部分/工具中是否有类似情况?