Hi Javier,
So you'd like to execute an action when a given section of the form is shown, leveraging the `fr-section-shown` event. You could do this in plain XForms, by adding the following, say right inside the `<xf:model>`, at towards the top of the source:
<xf:action observer="fr-view-component" event="fr-section-shown">
<xf:message value="'fr-section-shown'"/>
</xf:action>
If you're using Orbeon Forms CE, I'd recommend you write plain XForms, instead of relying on the markup produced by Orbeon Forms PE for actions/services, which may or may not be supported by future versions of Orbeon Forms CE. This is also true for the action syntax: if I were you, I'd be more comfortable just writing XForms for that.
You'll let me know if this works for you,
-Alex