Description
Docbook has a "role" attribute that is common to all DocBook elements and is intended to "provides additional, user-specified classification for an element".
For a few selected elements (e.g., phrase, indexterm, emphasis – all of them inline if I'm not mistaken), the Pandoc DocBook reader does examine the "role" attribute and handles it in a special way.
Would it be possible to handle "role" in a generic way for other DocBook elements as well so that a custom filter could examine it? (I hope I am phrasing this at least semi-correctly.)
What I want to achieve:
My toolchain converts from AsciiDoc to DocBook and from DocBook via Pandoc to docx. In AsciiDoc, I have block level elements that I give a custom "Finding" role (Custom role):
[.Finding]
Lorem ipsum dolor sit amet
which results in a <simpara role="Finding">Lorem ipsum dolor sit amet</simpara>
. In the final Word output, I would then like to have a paragraph with the docx custom paragraph style "finding" (that I would define in the reference docx) applied.
As suggested in #7195, this could be done with a filter that acts on the respective elements, if only the information was carried over into the filter input. This would also address #3657.