]> pere.pagekite.me Git - text-madewithcc.git/commitdiff
Adjust to build UTF-8 HTML.
authorPetter Reinholdtsen <pere@hungry.com>
Mon, 26 Oct 2020 21:45:16 +0000 (22:45 +0100)
committerPetter Reinholdtsen <pere@hungry.com>
Mon, 26 Oct 2020 21:45:16 +0000 (22:45 +0100)
Makefile
extra/docbook-utf8.xsl [new file with mode: 0644]

index f3e5ee1962a70b486b85e9a91b805881bb45364f..5edf1f774b53aa99f4efc99256ba607d1e11209c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -166,7 +166,7 @@ html: $(SOURCE).html
        done
 
 %.html: %.xml
        done
 
 %.html: %.xml
-       xmlto -m extra/pdf.xsl html-nochunks $^
+       xmlto -x extra/docbook-utf8.xsl -m extra/pdf.xsl html-nochunks $^
 
 # Useful for spell checking the text
 %.txt: %.xml
 
 # Useful for spell checking the text
 %.txt: %.xml
diff --git a/extra/docbook-utf8.xsl b/extra/docbook-utf8.xsl
new file mode 100644 (file)
index 0000000..549ae30
--- /dev/null
@@ -0,0 +1,10 @@
+<?xml version='1.0'?>
+<xsl:stylesheet  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                 version="1.0">
+
+<xsl:import href="/usr/share/xml/docbook/stylesheet/docbook-xsl/html/docbook.xsl"/>
+<xsl:output method="html"
+            encoding="UTF-8"
+            indent="no"/>
+
+</xsl:stylesheet>