Gustaf,
Thank you for the follow-up, and for the suggestion of falling back to the lower level solution.
It occurs to me that whilst you clearly cannot nest <if> tags inside a <property> tag, you can of course put <property> tags inside an <if> tag! 😊
I have therefore re-ordered my template to conditionally populate a property for each of the wikicmds, and to pass these properties separately up to the master template. The master template will display these if they are not nil and will wrap them in their containing <div>. This seems to work just fine.
The advantage is that this works without any modification to acs-templating. The disadvantage is that it requires xowiki specific modification to my plain-master.adp, however this is in a custom theme package anyway, so not really a problem.
Whilst doing this I discovered something else I didn't know, which is that property names cannot contain a hyphen! Is that widely known?
If I pass up and test for <property name="wikicmds_index"> everything works as expected. However, if I use <property name ="wikicmds-index"> I get an error message inserted into the page which reads:
IF tag nil test uses string not variable for "@wikicmds-index@"
I wonder if that is a feature or a bug?
Regards & many thanks,
Richard