Home Forums DITA and XMetaL Discussion CSS challenge Reply To: CSS challenge

Derek Read

Reply to: CSS challenge

One thing I didn't mention here is that you cannot access (or create) the pseudo elements :before or :after using ContainerStyle, which is why my script is merely highlighting the unwanted title elements using background-color and color. However, you could put a border around them as well (or instead), or change them to italic, underline, font-size, font-family, etc.

There is a way to change the rendered content for any given element so you could display “[Misplaced title] ” for each one. Let me know if what I have written doesn't cut it and I'll look into that. Or you could have a look at the API called SetRenderedContent() yourself.