Page 1 of 1

Conditional content that varies between chapters

Posted: Wed Nov 06, 2019 11:12 pm
by devonapple
I have a piece of text that I want to say "when two X do a thing" or "when two Y do a thing" depending on whether that piece of text is in chapter X or Y. I know conditionals are used as a document-wide means of changing which content displays, but can individual chapters provide their own conditional specifications? Apologies if this is extremely basic: I'm having trouble getting anything meaningful with the search terms.

Re: Conditional content that varies between chapters

Posted: Thu Nov 07, 2019 1:12 am
by Radu
Hi,

Key scopes should do what you want:
https://blog.oxygenxml.com/2015/08/dita ... on-of.html

Regards,
Radu

Re: Conditional content that varies between chapters

Posted: Thu Nov 07, 2019 8:31 am
by devonapple
Thank you! This sounds like the ticket. I'll work on puzzling through these.