-
Notifications
You must be signed in to change notification settings - Fork 79
Description
I am finding a lot of what I would call declarative profiling. That is, content that is profiled not because it is being marked for inclusion or exclusion when the file is included in a particular product manual, but simply because it is only true of a particular product.
For instance, in preferences-diff-dirs.dita, five separate blocks of text, which together comprised the entire body of the topic, were profiled editor, author, developer. In one case, the profiled block was nested inside another profiled block.
The topicref that included this file is itself profiled editor, author, developer, so these nested profiling attributes had no effect on the output -- they simply cluttered up the source and made it harder to edit and maintain.
In cases where a product might subsequently include this functionality, and that product was added to the profiling of the topicref, the topic would not have displayed properly. There would only have been a title with no body at all.
Personally, I am in favor of declarative profiling as a general principle, but it is not the DITA way of doing things, so I am removing this profiling where I see it, and where it is easy to see the effect. Unfortunately, it is not always easy to tell when profiling in the topic has no effect.
My recommendation is:
- Make sure that the profiling we include inline is not simply duplicating the profiling at the topicref or mapref level.
- Remove any purely declarative profiling we see.
Comments?