Re: [docbook-apps] gentext.template.exists -- possible bug

2020-09-15 Thread Richard Hamilton
I have created a “fix” to this, but it is more complex than I expected. gentext.template.exists, as currently written, simply calls gentext.template and if the return value is null (‘’), it returns 0, otherwise it returns 1. However, because gentext.template has to consider locale, context,

Re: [docbook-apps] transform td role to td class in HTML-output

2020-09-15 Thread Bob Stayton
Actually, the "class.value" mode isn't used with DocBook tables using HTML table markup.  That's because such tables are pretty much passed through to the HTML output, minus any DocBook attributes.  The td element's attributes are instead processed in mode="htmlTableAtt".  In that mode, by

Re: [docbook-apps] transform td role to td class in HTML-output

2020-09-15 Thread Peter Desjardins
Hi, Michel! I have some templates that use class.mode in my customization. I can confirm that this XSL controls the class attribute in output HTML: That template allows us to add some special CSS to a specific page in a doc set. I added the template based on the excellent coverage in

[docbook-apps] transform td role to td class in HTML-output

2020-09-15 Thread Michel van den Burg
Hi everyone, I'm using the DocBook XSL to transform DocBook XML to EPUB and HTML. I would like to transform td role="breedte-50" to td class="breedte-50" in my HTML output, but unfortunately the output is td I have tried to use match: docbook:td[@role = 'bron'] and I've tried the