Dave Hayes
Dave Hayes

Reputation: 56

Removing #c2 #a0 from docbook xhtml5 section titles

There was a great question and answer about this subject I've found by searching. However, neither the question nor the answer have provided an acceptable way to fix this issue.

To summarize, the issue is that my generated XHTML5 numbered section titles have a  between the number and the title string.

The xsl I have found as a workaround is this:

<xsl:import href="docbook-ns/xhtml/chunk.xsl"/>
<xsl:output method="html" encoding="UTF-8" indent="no"/>

which does fix the issue for xhtml.

If I want to use xhtml5, I'm out of luck...as this:

<xsl:import href="docbook-ns/xhtml5/chunk.xsl"/>
<xsl:output method="html" encoding="UTF-8" indent="no"/>

fails to remove the offending characters. Looking at the resultant HTML, I'm assuming the key difference is this line:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

which does not appear in the HTML using the xhtml5 version of docbook xsl.

I'm using docbook xsl v1.78.1. Can anyone explain exactly how to fix this issue properly? Thanks in advance.

Upvotes: 1

Views: 331

Answers (1)

Martin Honnen
Martin Honnen

Reputation: 167506

Try whether using output method="xhtml" fixes the problem. That assumes an XSLT 2.0 processor

Upvotes: 1

Related Questions