Conditional content that varies between chapters

devonapple
Posts: 4
Joined: Thu Aug 22, 2019 9:56 pm

Conditional content that varies between chapters

Post by devonapple » Wed Nov 06, 2019 11:12 pm

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.

Radu
Posts: 6541
Joined: Fri Jul 09, 2004 5:18 pm

Re: Conditional content that varies between chapters

Post by Radu » Thu Nov 07, 2019 1:12 am

Hi,

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

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

devonapple
Posts: 4
Joined: Thu Aug 22, 2019 9:56 pm

Re: Conditional content that varies between chapters

Post by devonapple » Thu Nov 07, 2019 8:31 am

Thank you! This sounds like the ticket. I'll work on puzzling through these.

Post Reply