Conditional content that varies between chapters

Post here questions and problems related to editing and publishing DITA content.
devonapple
Posts: 4
Joined: Thu Aug 22, 2019 9:56 pm

Conditional content that varies between chapters

Post 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.
Radu
Posts: 9436
Joined: Fri Jul 09, 2004 5:18 pm

Re: Conditional content that varies between chapters

Post by Radu »

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 »

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