Conditional processing
Posted: Thu Sep 15, 2011 11:14 pm
Hello,
How do I set up automatic conditional processing? Specifically I want to use the product attribute to control if an element is included or not. What I have so far is a topic that will be reused many times that only needs a couple of <p> elements to be specific for the different ditamaps that reference that topic. I also have another topic with an acronyms table with the rows identified by a product attribute. I succeeded in rendering to PDF by first creating the profiling attributes and then with the condition set in the supporting topics the correct elements rendered when I submitted the ditamap. Then to render the next ditamap I have to manually change the conditional profile in the supporting topics. I suspect there is a way to set the topicref in the ditamap to automate this but I haven’t been able to figure it out. I did find http://docs.oasis-open.org/dita/v1.0/ar ... dproc.html on the OASIS site but that didn’t help me. Everything I’ve read says conditional reusable content is a big reason to use DITA. I plan on using a lot more conditional profiles as I build the document set, I just need a better way to implement it.
How do I set up automatic conditional processing? Specifically I want to use the product attribute to control if an element is included or not. What I have so far is a topic that will be reused many times that only needs a couple of <p> elements to be specific for the different ditamaps that reference that topic. I also have another topic with an acronyms table with the rows identified by a product attribute. I succeeded in rendering to PDF by first creating the profiling attributes and then with the condition set in the supporting topics the correct elements rendered when I submitted the ditamap. Then to render the next ditamap I have to manually change the conditional profile in the supporting topics. I suspect there is a way to set the topicref in the ditamap to automate this but I haven’t been able to figure it out. I did find http://docs.oasis-open.org/dita/v1.0/ar ... dproc.html on the OASIS site but that didn’t help me. Everything I’ve read says conditional reusable content is a big reason to use DITA. I plan on using a lot more conditional profiles as I build the document set, I just need a better way to implement it.