Hi Brian,
- $form-resources points to the form's resources in the current language (e.g. selected with the language picker).
- $fr-resources points to the Form Runner resources in the current language. Those come from:
https://github.com/orbeon/orbeon-forms/blob/master/form-runner/jvm/src/main/resources/apps/fr/i18n/resources.xmlIn general, an XBL control shouldn't rely on the form's resources, as you typically don't want XBL controls to have a dependency on the form where they are used. If you're not worried about your component having a dependency on Form Runner, you can refer to the Form Runner resources using xxf:r() (see doc linked). To access a top-level instance, use something like: xxf:r('components.wizard.edit', '|fr-fr-resources|').
https://doc.orbeon.com/xforms/xpath/extension-core.html#xxfrNote the pipes in the instance name; they allow you to access to access an instance outside of the XBL component, and thus break encapsulation. For this reason, this use is undocumented, but we use this in build-in XBL components that are not expected to be used outside of Form Runner.
Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet