How to add a label to xbl component Orbeon

56 views Asked by At

I want to add an input field called name, so I created an XBL component and i add it in the directory ressources/xbl in Orbeon. I want to create the label "name" but it didn't work.

<xbl:xbl xmlns:xh="http://www.w3.org/1999/xhtml"
     xmlns:xf="http://www.w3.org/2002/xforms"
     xmlns:xs="http://www.w3.org/2001/XMLSchema"
     xmlns:ev="http://www.w3.org/2001/xml-events"
     xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
     xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
     xmlns:xbl="http://www.w3.org/ns/xbl"
     xmlns:xxbl="http://orbeon.org/oxf/xml/xbl">

<xbl:binding element="fr|tutorial-input" id="fr-tutorial-input" xxbl:mode="lhha binding value">
    <xbl:template>
        <!-- Input points to the external single-node binding -->
        <xf:input ref="xxf:binding('fr-tutorial-input')"/>
    </xbl:template>
</xbl:binding>
<fr:tutorial-input>
  <xf:label>name</xf:label>

0

There are 0 answers