Transformation with profiling (conditions within a single to
Posted: Wed Jan 26, 2011 10:32 pm
Is there a way to apply a separate transformation profile to some topics within the same bookmap?
In other words, I want Product1.dita to include the product="product1" info, and Product2.dita to include the product="product2" info. The product info is set off with ph elements.
Background:
I discuss several products within a single book. The book describes the image files used with each product, and since the information is mostly the same for all products, with slight differences, I tried the following approach:
1. I created a reusable text topic as the base content. This topic uses the ph tag with the product attribute for those phrases that are different or that apply to only one or two products.
2. I then created a reference topic for each product with the product attribute set to a single product (e.g., Product1.dita has product="product1", Product2.dita has product="product2" etc.). Each of these topics has a conref to the reusable text, and any additional, product-specific info.
However, editing the profile attributes for transformation seems to apply to all topics in the book. I get a transformation error that some topics have no content because of the product attribute that is set for that topic.
I've looked for more info, but did not find a clear answer. Any expert advice welcome.
Thanks,
Barbara
In other words, I want Product1.dita to include the product="product1" info, and Product2.dita to include the product="product2" info. The product info is set off with ph elements.
Background:
I discuss several products within a single book. The book describes the image files used with each product, and since the information is mostly the same for all products, with slight differences, I tried the following approach:
1. I created a reusable text topic as the base content. This topic uses the ph tag with the product attribute for those phrases that are different or that apply to only one or two products.
2. I then created a reference topic for each product with the product attribute set to a single product (e.g., Product1.dita has product="product1", Product2.dita has product="product2" etc.). Each of these topics has a conref to the reusable text, and any additional, product-specific info.
However, editing the profile attributes for transformation seems to apply to all topics in the book. I get a transformation error that some topics have no content because of the product attribute that is set for that topic.
I've looked for more info, but did not find a clear answer. Any expert advice welcome.
Thanks,
Barbara