Search code examples
xpathorbeon

Orbeon Forms: Dynamic label not working in nested section


I am using Orbeon Forms 2019.2.0.201912301747 CE.

My form structure looks like this:

<s-2>
 <s-2-iteration>
  <s-2-position>
   ...
   <s-2.7>
    <s-2.7-iteration>
     <s-2.7-position>
      ...
     </s-2.7-position>
    </s-2.7-iteration>
   </s-2.7>
   ...
  </s-2-position>
 </s-2-iteration>
</s-2>

Tags <...-position> are sections in which I would like to have dynamic labels like "Position no X", where X is the repeat number. I've done that for <s-2-position> tag using xxf:repeat-position() in Section Settings/Label/Template Parameters (screen).

But, when I've tried to do that in <s-2.7-position> tag, which is nested in <s-2-position> it did not work. Label was blank when running form. Futhermore, when I've tried to use any sort of dynamic label in <s-2.7-position> and in any other tag inside <s-2.7-position> it did not work as well.

So, have you ever encountered this problem? What is the solution/workaround? Is that Orbeon Froms error?

Thank you!


Solution

  • I have found a cause of the problem. After renaming tag <s-2.7-position> into anything not including s-2.7 (even separated) dynamic labels with template parameters are working, including xxf:repeat-position().