Skip to content

Commit

Permalink
For #4211: use bind()
Browse files Browse the repository at this point in the history
  • Loading branch information
ebruchez committed Jan 23, 2020
1 parent f98d41c commit 189c724
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions form-runner/jvm/src/main/resources/xbl/orbeon/wizard/wizard.xbl
Expand Up @@ -515,20 +515,23 @@
name="relevant-nav-section-or-grid-ids"
value="
$nav-section-or-grid-ids[
xxf:is-control-relevant(.) and (
not(
. = $sections-with-paging-section-ids and
count(xxf:binding(.)/*) = 0
for $section-or-grid-bind in bind(frf:bindId(frf:controlNameFromId(.)))
return
xxf:relevant($section-or-grid-bind) and (
not(
. = $sections-with-paging-section-ids and
empty($section-or-grid-bind/*)
)
)
)
]"/>

<!-- TODO: maybe use xxf:is-control-relevant(.) too -->
<xf:var
name="relevant-top-level-section-ids"
value="
$top-level-section-ids[
exists(xxf:binding(.)) and xxf:relevant(xxf:binding(.))
for $top-level-section-bind in bind(frf:bindId(frf:controlNameFromId(.)))
return
xxf:relevant($top-level-section-bind)
]"/>

<xf:var
Expand Down

0 comments on commit 189c724

Please sign in to comment.