Home › Forums › DITA and XMetaL Discussion › Possible to use conditions for different chapters of same book? › Reply To: Possible to use conditions for different chapters of same book?
Reply to: Possible to use conditions for different chapters of same book?
June 8, 2010 at 8:51 pmSounds like the same issue I had about a month ago when I needed to conditionally process different things in same deliverable. I asked on the dita-users forum and got a bunch of good feedback.
http://tech.groups.yahoo.com/group/dita-users/message/18259
What I ended up doing was to create a build run that first compiles a map though a new target I created that filters the content with a datival. The filtered xml files get placed in a folder where I can then run my final compile on and it will pull in the conditionally processed files into the final. It’s a bit of a kluge but it works for us for the current time being. It seems like dita 1.2 may have some ways to get this done.
Here is the target I made that just filters the files and copies any referenced images: