How to add to Docbook strikethrough functionality? I mean something like this this is striked example text. I mean HTML output generation.
Asked
Active
Viewed 750 times
1 Answers
3
Assuming that you are using DocBook-XSL, here is how you can add the strike-through effect to inline content:
Set the
emphasis.propagates.style
parameter to 1.Set the
html.stylesheet
parameter to a suitable value, for examplemystyle.css
.Add the following to
mystyle.css
:span.strike { text-decoration: line-through; }
Use
<emphasis role="strike">some text</emphasis>
to mark up text snippets in your XML source file that should be decorated.Transform to HTML and behold the result.
More details can be found here: http://www.sagehill.net/docbookxsl/UsingCSS.html.

mzjn
- 48,958
- 13
- 128
- 248