Question

I cannot get html:forms to work with DocBook5.

Here is a demo book: http://www.filedropper.com/demobooktar

Steps to reproduce:

In htdocs/demo/ you will see the output. xsltproc will leave the unmatched form elements in place, colored in red.

Please help, I don't know what I'm missing there. Any hints is appreciated, any to the point answer accepted. Thanks.

Addendum

The error message is

Element form in namespace 'http://www.w3.org/1999/xhtml' encountered in section, but no template matches

Was it helpful?

Solution

Try adding the following to your customization layer (online-course.xsl):

<xsl:template match="html:*" xmlns:html="http://www.w3.org/1999/xhtml">
  <xsl:element name="{local-name()}">
    <xsl:copy-of select="@*"/>
    <xsl:apply-templates/>
  </xsl:element>
</xsl:template>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top