Granular Control Over Which Elements Have Profile Attributes Shown in DITA Framework
Posted: Wed Mar 20, 2024 4:10 am
Hi,
I'm wondering if it's possible to have more granular control over which elements have profiling attributes displayed when the Show Profiling Attributes option is selected.
For example, in some DITA topics we're using the platform profiling attribute on the root topic element to enable some custom Schematron validation. This platform attribute is not being used for any profiling whatsoever. However, the same topic might contain other elements that we do want to profile according to the platform attribute.
In this case, when the Show Profiling Attributes option is selected, we'd prefer for only the elements descended from the topic element to have profiling attributes displayed for them, and to have the root topic element to not have any profiling attributes displayed.
Here's a screenshot to better visualize what we're hoping to achieve: I've attempted to use CSS to achieve this, but I'm not having any luck:
Is there any way to have more granular control over which elements have the profiling attribute shown?
Thanks!
Daniel
I'm wondering if it's possible to have more granular control over which elements have profiling attributes displayed when the Show Profiling Attributes option is selected.
For example, in some DITA topics we're using the platform profiling attribute on the root topic element to enable some custom Schematron validation. This platform attribute is not being used for any profiling whatsoever. However, the same topic might contain other elements that we do want to profile according to the platform attribute.
In this case, when the Show Profiling Attributes option is selected, we'd prefer for only the elements descended from the topic element to have profiling attributes displayed for them, and to have the root topic element to not have any profiling attributes displayed.
Here's a screenshot to better visualize what we're hoping to achieve: I've attempted to use CSS to achieve this, but I'm not having any luck:
Code: Select all
*[class~='topic/topic'][platform]:after(1) {
display:none;
}
*:not([class~='topic/topic'])[platform]:after(1){
display:inherit;
}
Thanks!
Daniel