DocBook XSL: how can I stop generating HTML from the title attribute?

The DocBook XSL HTML generator always displays the title attribute for div sections that come from DocBook elements that have names. Thus, articles, books, sections, etc. Have a title attribute.

I do not want this in my HTML. This causes Firefox to at least display a tooltip containing the section title. It might be useful if I didn't break my HTML code, but I did, so it's useless. And annoying.

How can I get rid of it? Is there a simple parameter that I can set, or do I need to use a tuning level? If the last thing I need to catch is that he doesn't do it?

+6
source share
1 answer

There are no parameters, but you need to add

 <xsl:template name="generate.html.title"/> 

to your customization level. This overrides the original template (in html.xsl) and disables the display of title attributes.

+9
source

Source: https://habr.com/ru/post/891169/


All Articles