Thanks for pointing out that it should be possible. I gave up last time, spending too many hours to solve this.
So now that I have forgotten how frustrated I was last time, I decided to give it a new try.
However I am still struggling. I have managed to refer to my custom leave-tag, from the oob input form, explicitly in this way:
<leave ref="test:offer:leave">
<check expr="![category/env/@live]">
<error>You may not make changes to an offer in production.</error>
</check>
....
<leave/>
The problem is that everything inside the leave tag in the OOB input form is "overwritten" by my custom referenced leave tag. So for example, when referencing from the OOB nmsoffer input form, like the example above, I am able to edit offers in the live environment without error messages.
I have found a similar OOB example in the landingPageWiz.xml (./nl6/datakit/crm/eng/form/landingPageWiz.xml) where this type of reference is made (open leave-tag with reference along with other content), but I don't now how to test if that works or not:
<leave ref="crm:landingPage:leave">
<if expr="[/ignored/selectedFolder]=0">
<if expr="[/ignored/@folderId]!='' AND [/ignored/@folderId]!=0">
<set xpath="@folder-id" expr="[/ignored/@folderId]"/>
</if>
<if expr="[/ignored/@operationOrgUnitId]!='' AND [/ignored/@operationOrgUnitId]!=0">
<set xpath="@folder-id" expr="DefaultFolder('crmLandingPage', 0, [/ignored/@operationOrgUnitId])"/>
</if>
</if>
</leave>