Is it possible to write a few html
lines directly ?
It is always possible "to write directly" in XSLT and you can modify any XSLT stylesheet, including those of DocBook, to do so. A simple example below:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output omit-xml-declaration="yes" indent="yes"/>
<xsl:template match="/">
<html>
Hello, World!
</html>
</xsl:template>
</xsl:stylesheet>
However, intersparsing XSLT and html is an antipattern that leads od spaghetti-like code that is unreadable and difficult to maintain.
This explains the design decision of Norm Walsh for dbhtml-include
.
A very powerful design pattern also is to have a form-like html that contains a few XML elements which after the transformation are substituted with specific content -- the fill-in-the-blanks pattern.